未验证 提交 3d09bd53 编写于 作者: G gem5 提交者: GitHub

IdentityScaleOpCleanPass assert_var_not_persistable (#49288)

* Enable identity_scale_op_clean_pass by default

* IdentityScaleOpCleanPass assert_var_not_persistable
上级 6c9fa665
......@@ -35,6 +35,7 @@ void IdentityScaleOpCleanPass::ApplyImpl(ir::Graph* graph) const {
->NewNode("scale_in")
->assert_is_op_input("scale")
->assert_has_n_outputs(1)
->assert_var_not_persistable()
->assert_more([](Node* x) {
for (auto* op : x->inputs) {
auto op_type = op->Op()->Type();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册