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 2019/03/01 00:45:27 UTC

[GitHub] wkcn commented on a change in pull request #14278: Use cudnn for dropout by default

wkcn commented on a change in pull request #14278: Use cudnn for dropout by default
URL: https://github.com/apache/incubator-mxnet/pull/14278#discussion_r261444796
 
 

 ##########
 File path: tests/cpp/include/test_op.h
 ##########
 @@ -72,7 +72,7 @@ struct GPUStreamScope {
     : opContext_(*opContext) {
     CHECK_EQ(opContext_.run_ctx.stream == nullptr, true)
       << "Invalid runtime context stream state";
-    opContext_.run_ctx.stream = mshadow::NewStream<gpu>(true, true);
+    opContext_.run_ctx.stream = mshadow::NewStream<gpu>(true, true, 0);
 
 Review comment:
   Sorry for my mistake.
   `opContext_.run_ctx.stream = mshadow::NewStream<gpu>(true, true, opContext_.run_ctx.ctx.dev_id);` may be better, although `opContext_.run_ctx.ctx.dev_id=0`

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


With regards,
Apache Git Services