You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/10/08 03:56:03 UTC

[GitHub] Redfriday opened a new issue #12756: Is NDArray creatiton thread safe

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


With regards,
Apache Git Services