From 37ac8bc35d1ed340f8ef3d945f483387caee4f66 Mon Sep 17 00:00:00 2001 From: chenfei Date: Mon, 22 Jun 2020 15:03:23 +0800 Subject: [PATCH] fix bug of control parser --- mindspore/ccsrc/session/ascend_control_parser.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/mindspore/ccsrc/session/ascend_control_parser.cc b/mindspore/ccsrc/session/ascend_control_parser.cc index 3f7426e95..868b968d9 100644 --- a/mindspore/ccsrc/session/ascend_control_parser.cc +++ b/mindspore/ccsrc/session/ascend_control_parser.cc @@ -224,9 +224,6 @@ NotNull AscendControlParser::ProcessKernelGraph(NotNullSetExecOrderByDefault(); const std::vector &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) { -- GitLab