未验证 提交 bc61c796 编写于 作者: M ming1753 提交者: GitHub

fix bug of constant folding pass (#55556)

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