fix empty graph error

This commit is contained in:
reku1997 2023-02-10 15:21:52 +08:00
parent 36414c2c87
commit 90564a1028
1 changed files with 2 additions and 1 deletions

View File

@ -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;