Hello,
In general, mxnet is not threadsafe. It goes as far as not even being safe to 
be called using a mutex.

Any interaction with mxnet has to happen with the same sticky thread in a 
single threaded fashion. Speak, if you use thread 1000 the first time you 
interact with mxnet, you always have to use thread 1000. This is called a 
dispatcher pattern.

Many people like to synchronize threads by using a mutex, like thread 1000, 
1001, 1002 etc. This will not work because we have thread local variables that 
won't be present if you call with different threads.

Thus, you should create a dedicated thread for any interaction with mxnet and 
pipe your commands through that thread.

[ Full content available at: 
https://github.com/apache/incubator-mxnet/issues/12756 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

Reply via email to