matteosal edited a comment on issue #20149: URL: https://github.com/apache/incubator-mxnet/issues/20149#issuecomment-818860713
Ok I've found the problem: the last argument to `MXCreateCachedOp`, `thread_safe`. By setting that to `false` instead of `true` the backward is computed correctly. This argument is always `false` in the executor python interface. It sounds very surprising that executor computation can never be thread-safe. Actually, I wonder why one would *ever* want to discard thread-safety. Maybe this is not about thread-safety in the graph computation (as I assumed initially), but something else? Can someone elaborate on this? Thanks -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
