You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by "Hao Jin (JIRA)" <ji...@apache.org> on 2018/04/04 00:50:00 UTC

[jira] [Commented] (MXNET-232) mx random seed doesn't work for random_uniform/random_normal on gpu

    [ https://issues.apache.org/jira/browse/MXNET-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424818#comment-16424818 ] 

Hao Jin commented on MXNET-232:
-------------------------------

Tried to reproduce the bug but was not able to, the returned result is correct:

import mxnet as mx
import numpy as np
shape = (2, 2)
out1 = mx.nd.zeros(shape=shape, ctx=mx.gpu(0))
out2 = mx.nd.zeros(shape=shape, ctx=mx.gpu(0))
mx.random.seed(0)
np.random.seed(0)
print(mx.nd.random_uniform(out=out1))
[[ 0.66865093 0.17409194]
[ 0.38500249 0.24678314]]
<NDArray 2x2 [@gpu|https://github.com/gpu](0)>
mx.random.seed(0)
np.random.seed(0)
print(mx.nd.random_uniform(out=out2))
[[ 0.66865093 0.17409194]
[ 0.38500249 0.24678314]]
<NDArray 2x2 [@gpu|https://github.com/gpu](0)>

> mx random seed doesn't work for random_uniform/random_normal on gpu
> -------------------------------------------------------------------
>
>                 Key: MXNET-232
>                 URL: https://issues.apache.org/jira/browse/MXNET-232
>             Project: Apache MXNet
>          Issue Type: Bug
>            Reporter: Anirudh Subramanian
>            Assignee: Hao Jin
>            Priority: Major
>
> https://github.com/apache/incubator-mxnet/issues/7426



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org