From a32f255d7ffc5aaba067ca8d311ad0e8dd249a70 Mon Sep 17 00:00:00 2001 From: chxin66 <57057788+chxin66@users.noreply.github.com> Date: Mon, 10 Apr 2023 13:28:51 +0800 Subject: [PATCH] Modified error to warning when check consumed tensor (#572) If graph has free INPUT or OUTPUT, modified error to warning when check in graph compile Type: Code refine Signed-off-by: Chen Xin Co-authored-by: Chen Xin --- src/tim/vx/graph.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tim/vx/graph.cc b/src/tim/vx/graph.cc index 5c17296..3dbc16e 100644 --- a/src/tim/vx/graph.cc +++ b/src/tim/vx/graph.cc @@ -222,12 +222,10 @@ bool GraphImpl::Compile() { bool status = true; if (not_consumed_input_cnt_ > 0 ) { // Tensor can bind to different operations - VSILOGE("Graph has free input, INPUT tensor may be created with OUTPUT attr."); - return false; + VSILOGW("Graph has free input, INPUT tensor may be created but not consumed."); } if (not_consumed_output_cnt_ != 0) { - VSILOGE("Graph has free output, OUTPUT tensor may be created with INPUT attr."); - return false; + VSILOGW("Graph has free output, OUTPUT tensor may be created but not consumed."); } status = Setup(); std::call_once(verify_graph_once_, [&status, this]() {