The fundamental problem here is that if we create multiple executors in the 
same thread (e.g., in the main thread), these executors will share the same 
temporary resources, which leads to race condition when these executors are 
used in different threads. To fix this problem, here we avoid creating 
executors when we create predictors in the main thread. The executors are 
actually created when the predictor is used in the worker thread for the first 
time. As long as the executor is always used in this worker thread, there won't 
be race condition.

[ Full content available at: 
https://github.com/apache/incubator-mxnet/pull/12456 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to