From 12bdb82a04b75b5d10fe683a396a7da87bb96408 Mon Sep 17 00:00:00 2001 From: WilliamLian Date: Thu, 23 Jul 2020 09:19:20 +0800 Subject: [PATCH] fix bug of warning info print --- mindspore/ccsrc/backend/session/ascend_session.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/backend/session/ascend_session.cc b/mindspore/ccsrc/backend/session/ascend_session.cc index 8f06878e91d..c92097eaaa8 100644 --- a/mindspore/ccsrc/backend/session/ascend_session.cc +++ b/mindspore/ccsrc/backend/session/ascend_session.cc @@ -1888,11 +1888,11 @@ void AscendSession::SelectKernel(NotNull root_graph) { MS_EXCEPTION_IF_NULL(ms_context); if (ms_context->execution_mode() == kGraphMode) { if (raise_precision_count > 0) { - MS_LOG(WARNING) << "There has " << raise_precision_count + MS_LOG(WARNING) << "There are " << raise_precision_count << " node/nodes used raise precision to selected the kernel!"; } if (reduce_precision_count > 0) { - MS_LOG(WARNING) << "There has " << raise_precision_count + MS_LOG(WARNING) << "There are " << reduce_precision_count << " node/nodes used reduce precision to selected the kernel!"; } }