samskalicky commented on a change in pull request #17762: Custom Operator 
Random Number Generator Support
URL: https://github.com/apache/incubator-mxnet/pull/17762#discussion_r399045773
 
 

 ##########
 File path: include/mxnet/lib_api.h
 ##########
 @@ -463,6 +466,19 @@ class OpResource {
                    &(sparse->data), &(sparse->indices), &(sparse->indptr));
   }
 
+  /*! \brief get pointer to cpu random number inited and seeded states */
+  /* this global states are located on cpu, of type std::mt19937 */
+  void* get_cpu_rand_states() {
+    return cpu_rand_states;
 
 Review comment:
   is there any reason not to return already casted to std::mt19937?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to