Do renormalize after CConv.
This commit is contained in:
parent
435fda944e
commit
9a95e57d49
|
@ -38,10 +38,6 @@ class EliminateDeadNodePass {
|
|||
}
|
||||
|
||||
auto change = EliminateDeadNode(func_graph);
|
||||
if (change) {
|
||||
// Enable renormalize.
|
||||
optimizer->set_is_untyped_generated();
|
||||
}
|
||||
return change;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue