forked from mindspore-Ecosystem/mindspore
fix bug of control parser
This commit is contained in:
parent
f1a69de0b6
commit
37ac8bc35d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue