提交 bd0c5384 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2439 Fix bug of ascend control parser

Merge pull request !2439 from chenfei_mindspore/fix-bug-ascend-control-parser
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册