From 90564a1028eb66e3131564482291496e22982f65 Mon Sep 17 00:00:00 2001 From: reku1997 Date: Fri, 10 Feb 2023 15:21:52 +0800 Subject: [PATCH] fix empty graph error --- .../ccsrc/plugin/device/ascend/hal/device/kernel_adjust.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mindspore/ccsrc/plugin/device/ascend/hal/device/kernel_adjust.cc b/mindspore/ccsrc/plugin/device/ascend/hal/device/kernel_adjust.cc index 6d4442195ed..707861a7e21 100644 --- a/mindspore/ccsrc/plugin/device/ascend/hal/device/kernel_adjust.cc +++ b/mindspore/ccsrc/plugin/device/ascend/hal/device/kernel_adjust.cc @@ -452,7 +452,8 @@ void KernelAdjust::ProcessLoopSink(const std::shared_ptr & const std::vector &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 exec_order;