“47aea0cdf8bb2487be3efd89e42d71bf81d30f18”上不存在“develop/doc_cn/v1_api_tutorials/README.html”
未验证 提交 bc61c796 编写于 作者: M ming1753 提交者: GitHub

fix bug of constant folding pass (#55556)

上级 806f8d2b
...@@ -83,6 +83,8 @@ void ConstantFoldingPass::ApplyImpl(ir::Graph *graph) const { ...@@ -83,6 +83,8 @@ void ConstantFoldingPass::ApplyImpl(ir::Graph *graph) const {
map[in_node->Name()] = 0; map[in_node->Name()] = 0;
if (!in_node->Var()->Persistable()) { if (!in_node->Var()->Persistable()) {
input_persis = false; input_persis = false;
} else if (!in_node->inputs.empty()) {
input_persis = false;
} }
} }
for (auto out_node : op_node->outputs) { for (auto out_node : op_node->outputs) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册