eric-haibin-lin edited a comment on issue #17495: Initial inspections for 
singleton thread safety in MXNet
URL: 
https://github.com/apache/incubator-mxnet/issues/17495#issuecomment-585461965
 
 
   There are a couple of thread local variables in the python level, too:
   - [AttrScope](python/mxnet/symbol/contrib.py) for symbols. Used in control 
flow ops. 
   - python/mxnet/context.py:    _default_ctx = threading.local()
   - python/mxnet/gluon/block.py:    _current = threading.local()
   - python/mxnet/name.py:    _current = threading.local()
   - [_NumpyArrayScope](python/mxnet/util.py) used to declare numpy array 
creation
   
   
   They suggest that if the frontend python thread is switched, some of these 
contexts are lost. 

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


With regards,
Apache Git Services

Reply via email to