From fd66c409b0b99c82ac7efc1e02bd50a25ef22056 Mon Sep 17 00:00:00 2001 From: littletomatodonkey Date: Mon, 13 Jul 2020 14:09:04 +0000 Subject: [PATCH] rm mkl --- deploy/cpp_infer/src/ocr_det.cpp | 2 +- deploy/cpp_infer/src/ocr_rec.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/cpp_infer/src/ocr_det.cpp b/deploy/cpp_infer/src/ocr_det.cpp index 636d2d04..ee30c1a7 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 6173c7ce..95ea9a5e 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_); } -- GitLab