xidulu commented on issue #16705: Dropout inconsistency bug
URL: 
https://github.com/apache/incubator-mxnet/issues/16705#issuecomment-549630402
 
 
   Clearly, dropout in inference mode affects the random state:
   ```
   >>> mx.random.seed(123)
   >>> mx.nd.Dropout(x, cudnn_off=True)
   
   [[1. 1. 1.]
    [1. 1. 1.]
    [1. 1. 1.]]
   <NDArray 3x3 @gpu(0)>
   >>> mx.random.uniform(shape=(2,2),ctx=mx.gpu(0))
   
   [[0.6512425  0.11220306]
    [0.86499107 0.68052745]]
   <NDArray 2x2 @gpu(0)>
   >>> mx.random.seed(123)
   >>> mx.random.uniform(shape=(2,2),ctx=mx.gpu(0))
   
   [[0.9423294  0.68506277]
    [0.19981462 0.60299706]]
   <NDArray 2x2 @gpu(0)>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to