未验证 提交 b5645956 编写于 作者: Z zhupengyang 提交者: GitHub

fix lite xpu config (#55188)

上级 07e5552c
...@@ -80,6 +80,7 @@ paddle::lite_api::PaddlePredictor* EngineManager::Create( ...@@ -80,6 +80,7 @@ paddle::lite_api::PaddlePredictor* EngineManager::Create(
cfg.xpu_quant_post_static_gelu_out_threshold; cfg.xpu_quant_post_static_gelu_out_threshold;
lite_xpu_config.quant_post_dynamic_activation_method = lite_xpu_config.quant_post_dynamic_activation_method =
cfg.xpu_quant_post_dynamic_activation_method; cfg.xpu_quant_post_dynamic_activation_method;
lite_cxx_config.set_xpu_config(lite_xpu_config);
if (cfg.xpu_enable_multi_stream) { if (cfg.xpu_enable_multi_stream) {
lite_cxx_config.enable_xpu_multi_stream(); lite_cxx_config.enable_xpu_multi_stream();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册