You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/04/23 17:40:12 UTC

[GitHub] [incubator-mxnet] leezu commented on a change in pull request #18145: Revert #17547

leezu commented on a change in pull request #18145:
URL: https://github.com/apache/incubator-mxnet/pull/18145#discussion_r413994503



##########
File path: src/operator/nn/dropout-inl.h
##########
@@ -497,7 +492,7 @@ class DropoutOp {
   Context ctx_;
   cudnnDataType_t dtype_;
   cudnnDropoutDescriptor_t dropout_desc_;
-  uint64_t seed_;
+  uint64_t seed_ = 17 + rand() % 4096;  // NOLINT(runtime/threadsafe_fn)

Review comment:
       https://en.cppreference.com/w/cpp/numeric/random




----------------------------------------------------------------
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:
users@infra.apache.org