!2439 Fix bug of ascend control parser

Merge pull request !2439 from chenfei_mindspore/fix-bug-ascend-control-parser
This commit is contained in:
mindspore-ci-bot 2020-06-22 16:24:10 +08:00 committed by Gitee
commit bd0c538470
1 changed files with 0 additions and 3 deletions

View File

@ -224,9 +224,6 @@ NotNull<CNodePtr> AscendControlParser::ProcessKernelGraph(NotNull<KernelGraphPtr
// 3. topological sort
kg->SetExecOrderByDefault();
const std::vector<CNodePtr> &nodes = kg->execution_order();
if (nodes.empty()) {
MS_LOG(EXCEPTION) << "KernelGraph " << kg->ToString() << " has no cnodes!";
}
// 4. insert first_label
CNodePtr start_label;
if (last_node != nullptr && last_label != nullptr) {