roywei commented on a change in pull request #16532: fix dropout gpu seed
URL: https://github.com/apache/incubator-mxnet/pull/16532#discussion_r337757607
 
 

 ##########
 File path: src/operator/nn/dropout-inl.h
 ##########
 @@ -253,7 +253,19 @@ class DropoutOp {
                            const TBlob &mask,
                            const TBlob &out) {
       Stream<xpu> *s = ctx.get_stream<xpu>();
 
 Review comment:
   yes, and if we can access CPU here it will be much easier, there is a 
getRandInt() for CPU that directly returns an unsigned number.

----------------------------------------------------------------
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