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(); [ 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