!18862 fix bug of UnifyMindIR repeatly match same node

Merge pull request !18862 from yuchaojie/unify_ir
This commit is contained in:
i-robot 2021-06-25 08:39:45 +00:00 committed by Gitee
commit 36b6a96922
1 changed files with 1 additions and 1 deletions

View File

@ -389,8 +389,8 @@ GraphId AscendSession::CompileGraphImpl(NotNull<FuncGraphPtr> func_graph) {
auto root_graph = ConstructKernelGraph(func_graph, &all_graphs);
for (const auto &graph : all_graphs) {
graph->set_root_graph_id(root_graph->graph_id());
UnifyMindIR(graph);
}
UnifyMindIR(root_graph);
// Update Graph Dynamic Shape Attr
UpdateAllGraphDynamicShapeAttr(all_graphs);
opt::BackendCommonOptimization(root_graph);