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: [email protected] With regards, Apache Git Services
