diff --git a/deploy/cpp_infer/src/ocr_det.cpp b/deploy/cpp_infer/src/ocr_det.cpp index 636d2d0453..ee30c1a752 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 6173c7ce73..95ea9a5e74 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_); }