未验证 提交 957fbb02 编写于 作者: S shentanyue 提交者: GitHub

fix (#47537)

上级 5a2ab683
...@@ -65,7 +65,9 @@ paddle::lite_api::PaddlePredictor* EngineManager::Create( ...@@ -65,7 +65,9 @@ paddle::lite_api::PaddlePredictor* EngineManager::Create(
lite_cxx_config.set_xpu_multi_encoder_method(cfg.precision, lite_cxx_config.set_xpu_multi_encoder_method(cfg.precision,
cfg.adaptive_seqlen); cfg.adaptive_seqlen);
lite_cxx_config.set_xpu_dev_per_thread(cfg.device_id); lite_cxx_config.set_xpu_dev_per_thread(cfg.device_id);
lite_cxx_config.enable_xpu_multi_stream(cfg.enable_multi_stream); if (cfg.enable_multi_stream) {
lite_cxx_config.enable_xpu_multi_stream();
}
#endif #endif
#ifdef LITE_SUBGRAPH_WITH_NPU #ifdef LITE_SUBGRAPH_WITH_NPU
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册