diff --git a/deploy/cpp_infer/src/ocr_det.cpp b/deploy/cpp_infer/src/ocr_det.cpp index 636d2d0453e191e4e1d116001c2424bdf37d000b..ee30c1a752870c6ba58fd1eb459fb125c63016e5 100644 --- a/deploy/cpp_infer/src/ocr_det.cpp +++ b/deploy/cpp_infer/src/ocr_det.cpp @@ -25,7 +25,7 @@ void DBDetector::LoadModel(const std::string &model_dir) { config.EnableUseGpu(this->gpu_mem_, this->gpu_id_); } else { config.DisableGpu(); - config.EnableMKLDNN(); // 开启MKLDNN加速 + // config.EnableMKLDNN(); // not sugesteed to use for now config.SetCpuMathLibraryNumThreads(this->cpu_math_library_num_threads_); } diff --git a/deploy/cpp_infer/src/ocr_rec.cpp b/deploy/cpp_infer/src/ocr_rec.cpp index 6173c7ce733d8dd4f9de5655592e98d30ff5ac44..95ea9a5e743b233271e1afc7fa3c44d11fd4a6b6 100644 --- a/deploy/cpp_infer/src/ocr_rec.cpp +++ b/deploy/cpp_infer/src/ocr_rec.cpp @@ -128,7 +128,7 @@ void CRNNRecognizer::LoadModel(const std::string &model_dir) { config.EnableUseGpu(this->gpu_mem_, this->gpu_id_); } else { config.DisableGpu(); - config.EnableMKLDNN(); // 开启MKLDNN加速 + // config.EnableMKLDNN(); // not sugesteed to use for now config.SetCpuMathLibraryNumThreads(this->cpu_math_library_num_threads_); }