!2620 fix issue [controlflow] if Cascad an if, raise error

Merge pull request !2620 from wenchunjiang/fix_control_sink_bug
pull/2620/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit df1c2a69f1

@ -263,7 +263,7 @@ NotNull<CNodePtr> AscendControlParser::ProcessKernelGraph(NotNull<KernelGraphPtr
RecurseSwitchLayer(kg, NOT_NULL(cnode), GetNextRealKernel(nodes, i + 1), memo);
}
}
kg->SetExecOrderByDefault();
MS_LOG(INFO) << "End KernelGraph process: " << kg->ToString();
return NOT_NULL(start_label);
}

Loading…
Cancel
Save