diff --git a/src/initialize.cc b/src/initialize.cc index c07eb5a25877..57f42cf30d2c 100644 --- a/src/initialize.cc +++ b/src/initialize.cc @@ -93,7 +93,7 @@ void LibraryInitializer::atfork_parent() { void LibraryInitializer::atfork_child() { using op::custom::CustomOperator; // Conservative thread management for multiprocess workers - this->cpu_worker_nthreads_ = this->mp_cv_num_threads_; + this->cpu_worker_nthreads_ = this->mp_worker_nthreads_; #if MXNET_USE_OPENCV && !__APPLE__ cv::setNumThreads(mp_cv_num_threads_); #endif // MXNET_USE_OPENCV