forked from mindspore-Ecosystem/mindspore
fix empty graph error
This commit is contained in:
parent
36414c2c87
commit
90564a1028
|
@ -452,7 +452,8 @@ void KernelAdjust::ProcessLoopSink(const std::shared_ptr<session::KernelGraph> &
|
|||
|
||||
const std::vector<CNodePtr> &orders = kernel_graph_ptr->execution_order();
|
||||
if (orders.empty()) {
|
||||
MS_LOG(EXCEPTION) << "graph " << kernel_graph_ptr->graph_id() << " execution order is empty";
|
||||
MS_LOG(WARNING) << "graph " << kernel_graph_ptr->graph_id() << " execution order is empty";
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<CNodePtr> exec_order;
|
||||
|
|
Loading…
Reference in New Issue