Browse Source

fix bug of control parser

tags/v0.6.0-beta
chenfei 5 years ago
parent
commit
37ac8bc35d
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      mindspore/ccsrc/session/ascend_control_parser.cc

+ 0
- 3
mindspore/ccsrc/session/ascend_control_parser.cc 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) {


Loading…
Cancel
Save