From ac7197d33ed8e860079c79ae005282f246144f64 Mon Sep 17 00:00:00 2001 From: tronzhang <6517937+tronzhang@user.noreply.gitee.com> Date: Wed, 17 Jun 2020 10:02:33 +0800 Subject: [PATCH] fix log level: const tensor conversion is normal --- mindspore/ccsrc/kernel/akg/akgkernelbuild.cc | 8 ++++---- mindspore/ccsrc/session/ascend_session.cc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mindspore/ccsrc/kernel/akg/akgkernelbuild.cc b/mindspore/ccsrc/kernel/akg/akgkernelbuild.cc index 28b3ad470..4ebd5a616 100644 --- a/mindspore/ccsrc/kernel/akg/akgkernelbuild.cc +++ b/mindspore/ccsrc/kernel/akg/akgkernelbuild.cc @@ -277,9 +277,9 @@ bool AkgKernelBuild::CreateInputDescJson(const AnfNodePtr &anf_node, nlohmann::j input_desc_json[kTensorName] = "input_" + std::to_string(GetInputTensorIdxInc(anf_node, real_input_index)); auto input_shape = AnfAlgo::GetInputDeviceShape(anf_node, real_input_index); if (GetInputTensorValue(anf_node, real_input_index, &input_desc_json)) { - MS_LOG(WARNING) << "we take input[" << real_input_index << "] of [" << anf_node->DebugString(2) - << "] as const tensor, shape: [" << Vector2Str(input_shape) - << "], value: " << input_desc_json[kValue]; + MS_LOG(DEBUG) << "Take input[" << real_input_index << "] of [" << anf_node->DebugString(2) + << "] as const tensor, shape: [" << Vector2Str(input_shape) + << "], value: " << input_desc_json[kValue]; input_shape.clear(); } @@ -351,7 +351,7 @@ void GetJson(const AnfNodePtr &anf_node, const std::vector &dyn_input_sizes } (*attr_json)[kValue] = data_format; } else { - MS_LOG(WARNING) << "attr type:" << type; + MS_LOG(WARNING) << "No valid json value for attr type: " << type; } } diff --git a/mindspore/ccsrc/session/ascend_session.cc b/mindspore/ccsrc/session/ascend_session.cc index f192b8b6c..6c8546b9f 100644 --- a/mindspore/ccsrc/session/ascend_session.cc +++ b/mindspore/ccsrc/session/ascend_session.cc @@ -541,12 +541,12 @@ void AscendSession::SelectKernel(const KernelGraph &kernel_graph) const { MS_LOG(INFO) << "Select ApplyKernel: " << cnode->DebugString(); } if (raise_precision_count > 0) { - MS_LOG(WARNING) << "There has " << raise_precision_count - << " node/nodes used raise precision to selected the kernel!"; + MS_LOG(DEBUG) << "There has " << raise_precision_count + << " node/nodes used raise precision to selected the kernel!"; } if (reduce_precision_count > 0) { - MS_LOG(WARNING) << "There has " << reduce_precision_count - << " node/nodes used reduce precision to selected the kernel!"; + MS_LOG(DEBUG) << "There has " << reduce_precision_count + << " node/nodes used reduce precision to selected the kernel!"; } MS_LOG(INFO) << "Finish!"; } -- GitLab