Do renormalize after CConv.

This commit is contained in:
Zhang Qinghua 2022-01-13 12:55:38 +08:00
parent 435fda944e
commit 9a95e57d49
2 changed files with 1 additions and 5 deletions

View File

@ -38,10 +38,6 @@ class EliminateDeadNodePass {
}
auto change = EliminateDeadNode(func_graph);
if (change) {
// Enable renormalize.
optimizer->set_is_untyped_generated();
}
return change;
}
};

View File

@ -538,7 +538,7 @@ void InitOpt(const ResourcePtr &res) {
g_pass_opts["opt_a"] = Optimizer::MakeOptimizer("opt_a", res, GetOptPassesA(irpass));
g_pass_opts["opt_b"] = Optimizer::MakeOptimizer("opt_b", res, GetOptPassesB(irpass), false, true);
g_pass_opts["opt_after_cconv"] =
Optimizer::MakeOptimizer("opt_after_cconv", res, GetOptPassesAfterCconv(irpass), false, true);
Optimizer::MakeOptimizer("opt_after_cconv", res, GetOptPassesAfterCconv(irpass), false, false);
g_pass_opts["opt_trans_graph"] =
Optimizer::MakeOptimizer("opt_trans_graph", res, GetOptPassesTransformGraph(irpass), true, true);
g_pass_opts["renormal"] = Optimizer::MakeOptimizer("renormal", res, GetOptPassesC(irpass));