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 2018/06/14 22:32:54 UTC

[GitHub] piiswrong commented on a change in pull request #11293: Update cached_op.cc

piiswrong commented on a change in pull request #11293: Update cached_op.cc
URL: https://github.com/apache/incubator-mxnet/pull/11293#discussion_r195591137
 
 

 ##########
 File path: src/imperative/cached_op.cc
 ##########
 @@ -674,7 +674,7 @@ OpStatePtr CachedOp::StaticForward(
   std::lock_guard<std::mutex> lock(state.mutex);
 
   bool match = SetForwardGraph(&state.info, recording, inputs);
-  match = match && state.recording != recording;
+  match = match && state.recording == recording;
 
 Review comment:
   It only affects performance. hard to test

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