提交 ac7197d3 编写于 作者: T tronzhang

fix log level: const tensor conversion is normal

上级 1e90e7be
......@@ -277,7 +277,7 @@ 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)
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];
......@@ -351,7 +351,7 @@ void GetJson(const AnfNodePtr &anf_node, const std::vector<int> &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;
}
}
......
......@@ -541,11 +541,11 @@ 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
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
MS_LOG(DEBUG) << "There has " << reduce_precision_count
<< " node/nodes used reduce precision to selected the kernel!";
}
MS_LOG(INFO) << "Finish!";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册