mxnet-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hao Jin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MXNET-232) mx random seed doesn't work for random_uniform/random_normal on gpu
Date Wed, 04 Apr 2018 00:50:00 GMT

    [ 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


Mime
View raw message