cjolivier01 commented on a change in pull request #9677: Refactor operators and 
add MKLDNN
URL: https://github.com/apache/incubator-mxnet/pull/9677#discussion_r166170702
 
 

 ##########
 File path: tests/cpp/include/test_core_op.h
 ##########
 @@ -209,6 +209,13 @@ class CoreOpExecutor : public 
test::op::OperatorDataInitializer<DType>
           requested.emplace_back(r);
         } else if (req.type == ResourceRequest::kRandom) {
           
requested.emplace_back(ResourceManager::Get()->Request(ctx->run_ctx.ctx, req));
+        } else if (req.type == ResourceRequest::kParallelRandom) {
+          Resource rm = ResourceManager::Get()->Request(ctx->run_ctx.ctx, req);
+          if (ctx->run_ctx.ctx.dev_mask() == Context::kCPU) {
+            common::random::RandGenerator<cpu, DType>::AllocState(
 
 Review comment:
   you define the seed just like you?d define it in the normal code ? there?s a 
C API for it 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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