ptrendx opened a new pull request #18498:
URL: https://github.com/apache/incubator-mxnet/pull/18498


   ## Description ##
   Both `InferShape` and `InferType` functions can be called from different 
threads than the worker thread calling forward. Previously only 
`intermediate_shapes_`/`intermediate_dtypes_` were protected, but those methods 
change also the `subgraph_` filed of `FusedOp`. That is why the lock needs to 
guard both functions from the beginning.
   
   FYI @eric-haibin-lin 
   
   ## Checklist ##
   ### Essentials ###
   Please feel free to remove inapplicable items for your PR.
   - [x] Changes are complete (i.e. I finished coding on this PR)
   - [x] To the best of my knowledge, examples are either not affected by this 
change, or have been fixed to be compatible with this change


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


Reply via email to