diff --git a/mindspore/ccsrc/frontend/optimizer/dead_node_eliminate.h b/mindspore/ccsrc/frontend/optimizer/dead_node_eliminate.h index 85320bbef82..79f92f44fff 100644 --- a/mindspore/ccsrc/frontend/optimizer/dead_node_eliminate.h +++ b/mindspore/ccsrc/frontend/optimizer/dead_node_eliminate.h @@ -38,10 +38,6 @@ class EliminateDeadNodePass { } auto change = EliminateDeadNode(func_graph); - if (change) { - // Enable renormalize. - optimizer->set_is_untyped_generated(); - } return change; } }; diff --git a/mindspore/ccsrc/pipeline/jit/pass.cc b/mindspore/ccsrc/pipeline/jit/pass.cc index 39624b6fea3..0b7dae1bb23 100644 --- a/mindspore/ccsrc/pipeline/jit/pass.cc +++ b/mindspore/ccsrc/pipeline/jit/pass.cc @@ -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));