Redfriday opened a new issue #12756: Is NDArray creatiton thread safe
URL: https://github.com/apache/incubator-mxnet/issues/12756
 
 
   We use mxnet to do online prediction, the program randomly core when NDArray 
destructs, we may allocate NDArray parallelly in different thread, is NDArray 
creatiton not thread safe? Below code may be executed parallelly .
   
        mxnet::cpp::NDArray::Load(_network_param_path, nullptr, 
&network->params);
        // Create new ndarray according to the batch size for inputs.
         network->params["data"] = mxnet::cpp::NDArray(
                     mxnet::cpp::Shape(_batch_size, _dim),
                     mxnet::cpp::Context::cpu(), false);
         mxnet::cpp::NDArray::WaitAll();
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to