未验证 提交 220f13bd 编写于 作者: R ronnywang 提交者: GitHub

[CustomDevice] Not reset pass_builder (#56755)

上级 0ce66c1c
...@@ -1571,6 +1571,8 @@ void AnalysisPredictor::PrepareArgument() { ...@@ -1571,6 +1571,8 @@ void AnalysisPredictor::PrepareArgument() {
} }
} else if (config_.use_xpu()) { } else if (config_.use_xpu()) {
// All passes support fp16. Not reset pass_builder. // All passes support fp16. Not reset pass_builder.
} else if (config_.use_custom_device()) {
// All passes support fp16. Not reset pass_builder.
} else { } else {
pass_builder->ClearPasses(); pass_builder->ClearPasses();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册