forked from mindspore-Ecosystem/mindspore
!18862 fix bug of UnifyMindIR repeatly match same node
Merge pull request !18862 from yuchaojie/unify_ir
This commit is contained in:
commit
36b6a96922
|
@ -389,8 +389,8 @@ GraphId AscendSession::CompileGraphImpl(NotNull<FuncGraphPtr> func_graph) {
|
||||||
auto root_graph = ConstructKernelGraph(func_graph, &all_graphs);
|
auto root_graph = ConstructKernelGraph(func_graph, &all_graphs);
|
||||||
for (const auto &graph : all_graphs) {
|
for (const auto &graph : all_graphs) {
|
||||||
graph->set_root_graph_id(root_graph->graph_id());
|
graph->set_root_graph_id(root_graph->graph_id());
|
||||||
UnifyMindIR(graph);
|
|
||||||
}
|
}
|
||||||
|
UnifyMindIR(root_graph);
|
||||||
// Update Graph Dynamic Shape Attr
|
// Update Graph Dynamic Shape Attr
|
||||||
UpdateAllGraphDynamicShapeAttr(all_graphs);
|
UpdateAllGraphDynamicShapeAttr(all_graphs);
|
||||||
opt::BackendCommonOptimization(root_graph);
|
opt::BackendCommonOptimization(root_graph);
|
||||||
|
|
Loading…
Reference in New Issue