!48197 Update Execution Order of Graph OPT

Merge pull request !48197 from jiaorui/ge-bug-fix
This commit is contained in:
i-robot 2023-01-31 06:45:31 +00:00 committed by Gitee
commit bfe7af1f8a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ void GeOptimization(const FuncGraphPtr &func_graph) {
optimizer->AddPassManager(pm);
(void)optimizer->Optimize(func_graph);
auto kernel_graph = func_graph->cast<KernelGraphPtr>();
MS_EXCEPTION_IF_NULL(kernel_graph);
kernel_graph->SetExecOrderByDefault();
#ifdef ENABLE_DUMP_IR
if (context->CanDump(kAdvanced)) {
std::string file_name = "hwopt_d_after_ge_optimization_graph_" + func_graph->ToString() + ".ir";