未验证 提交 de528981 编写于 作者: H HappyAngel 提交者: GitHub

fix paddlepredictor build error. test=develop (#28792)

上级 b5218227
...@@ -53,7 +53,7 @@ paddle::lite_api::PaddlePredictor* EngineManager::Create( ...@@ -53,7 +53,7 @@ paddle::lite_api::PaddlePredictor* EngineManager::Create(
cfg.param.c_str(), cfg.param.size()); cfg.param.c_str(), cfg.param.size());
lite_cxx_config.set_valid_places(cfg.valid_places); lite_cxx_config.set_valid_places(cfg.valid_places);
#ifdef PADDLE_WITH_ARM #ifdef PADDLE_WITH_ARM
set_threads.set_threads(cfg.cpu_math_library_num_threads); lite_cxx_config.set_threads(cfg.cpu_math_library_num_threads);
#else #else
lite_cxx_config.set_x86_math_library_num_threads( lite_cxx_config.set_x86_math_library_num_threads(
cfg.cpu_math_library_num_threads); cfg.cpu_math_library_num_threads);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册