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

fix lite with xpu or nnadapter (#37449)

上级 49366a63
......@@ -274,7 +274,9 @@ void LiteSubgraphPass::SetUpEngine(
} else if (use_xpu) {
target_type = TARGET(kXPU);
} else if (use_nnadapter) {
#ifdef LITE_WITH_NNADAPTER
target_type = TARGET(kNNAdapter);
#endif
} else {
#ifdef PADDLE_WITH_ARM
target_type = TARGET(kARM);
......
......@@ -823,7 +823,7 @@ struct PD_INFER_DECL AnalysisConfig {
// XPU related.
bool use_xpu_{false};
int xpu_device_id_{0};
int xpu_l3_workspace_size_;
int xpu_l3_workspace_size_{0};
bool xpu_locked_;
bool xpu_autotune_;
std::string xpu_autotune_file_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册