From 29161e85b607d632b74b64212074137f56642823 Mon Sep 17 00:00:00 2001 From: wangxiaotian22 Date: Sat, 17 Jul 2021 16:46:04 +0800 Subject: [PATCH] modify error_code related by op --- ge/engine_manager/dnnengine_manager.cc | 4 ++-- ge/generator/ge_generator.cc | 4 ++-- ge/graph/partition/engine_place.cc | 2 +- ge/graph/passes/compile_nodes_pass.cc | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ge/engine_manager/dnnengine_manager.cc b/ge/engine_manager/dnnengine_manager.cc index 9e338295..b959d61e 100644 --- a/ge/engine_manager/dnnengine_manager.cc +++ b/ge/engine_manager/dnnengine_manager.cc @@ -267,7 +267,7 @@ std::string DNNEngineManager::GetDNNEngineName(const ge::NodePtr &node_ptr) { for (const auto &it : unsupported_reasons) { reason += it.first + ":" + it.second + ";"; ErrorManager::GetInstance().ATCReportErrMessage( - "E13002", {"optype", "opskernel", "reason"}, {op_desc->GetType(), it.first, it.second}); + "EZ3002", {"optype", "opskernel", "reason"}, {op_desc->GetType(), it.first, it.second}); GELOGE(GE_GRAPH_ASSIGN_ENGINE_FAILED, "[Check][OpSupported]Op type %s of ops kernel %s " "is unsupported, reason : %s", op_desc->GetType().c_str(), it.first.c_str(), it.second.c_str()); @@ -279,7 +279,7 @@ std::string DNNEngineManager::GetDNNEngineName(const ge::NodePtr &node_ptr) { (void)Analyzer::GetInstance()->DoAnalyze(analyze_info); ErrorManager::GetInstance().ATCReportErrMessage( - "E13003", {"opname", "optype"}, {op_desc->GetName(), op_desc->GetType()}); + "EZ3003", {"opname", "optype"}, {op_desc->GetName(), op_desc->GetType()}); GELOGE(GE_GRAPH_ASSIGN_ENGINE_FAILED, "[Get][DNNEngineName]Can't find any supported ops kernel " "and engine of %s, type is %s", op_desc->GetName().c_str(), op_desc->GetType().c_str()); diff --git a/ge/generator/ge_generator.cc b/ge/generator/ge_generator.cc index 07355ab5..0af922f9 100644 --- a/ge/generator/ge_generator.cc +++ b/ge/generator/ge_generator.cc @@ -146,14 +146,14 @@ static Status CheckEngineTypeSupport(const NodePtr &node, OpEngineType engine_ty return SUCCESS; } else { ErrorManager::GetInstance().ATCReportErrMessage( - "E13002", {"optype", "opskernel", "reason"}, {op_desc->GetType(), kernel_name, unsupported_reason}); + "EZ3002", {"optype", "opskernel", "reason"}, {op_desc->GetType(), kernel_name, unsupported_reason}); GELOGE(FAILED, "[Call][CheckSupported] failed, Op type %s of ops kernel %s is unsupported, reason:%s", op_desc->GetType().c_str(), kernel_name.c_str(), unsupported_reason.c_str()); return FAILED; } } else { ErrorManager::GetInstance().ATCReportErrMessage( - "E13003", {"opname", "optype"}, {op_desc->GetName(), op_desc->GetType()}); + "EZ3003", {"opname", "optype"}, {op_desc->GetName(), op_desc->GetType()}); GELOGE(FAILED, "[Check][Param] Can not find any supported ops kernel info store by kernel_name %s," "op type is %s, op name is %s", kernel_name.c_str(), op_desc->GetType().c_str(), op_desc->GetName().c_str()); diff --git a/ge/graph/partition/engine_place.cc b/ge/graph/partition/engine_place.cc index 8639f015..b70170a7 100755 --- a/ge/graph/partition/engine_place.cc +++ b/ge/graph/partition/engine_place.cc @@ -88,7 +88,7 @@ Status EnginePlacer::Run() { if (engine_name.empty()) { is_check_support_success = false; ErrorManager::GetInstance().ATCReportErrMessage( - "E13003", {"opname", "optype"}, {op_desc->GetName(), op_desc->GetType()}); + "EZ3003", {"opname", "optype"}, {op_desc->GetName(), op_desc->GetType()}); GELOGE(GE_CLI_GE_NOT_INITIALIZED, "[Check][Param] Can not find engine of op name %s type %s", op_desc->GetName().c_str(), op_desc->GetType().c_str()); continue; diff --git a/ge/graph/passes/compile_nodes_pass.cc b/ge/graph/passes/compile_nodes_pass.cc index 1e734178..65f22eb2 100755 --- a/ge/graph/passes/compile_nodes_pass.cc +++ b/ge/graph/passes/compile_nodes_pass.cc @@ -141,14 +141,14 @@ graphStatus CompileNodesPass::GetSupportedKernel(const NodePtr &node, const std: } } for (const auto &it : unsupported_reasons) { - REPORT_INPUT_ERROR("E13002", std::vector({"optype", "opskernel", "reason"}), + REPORT_INPUT_ERROR("EZ3002", std::vector({"optype", "opskernel", "reason"}), std::vector({op_desc->GetType(), it.first, it.second})); GELOGE(GE_GRAPH_ASSIGN_ENGINE_FAILED, "[Call][CheckAccuracySupport] for Op type %s of ops kernel %s is unsupported, reason:%s", op_desc->GetType().c_str(), it.first.c_str(), it.second.c_str()); } - REPORT_INPUT_ERROR("E13003", std::vector({"opname", "optype"}), + REPORT_INPUT_ERROR("EZ3003", std::vector({"opname", "optype"}), std::vector({op_desc->GetName(), op_desc->GetType()})); GELOGE(GRAPH_FAILED, "[Check][Param] Cannot find kernel lib support node:%s, type:%s , get kernel lib failed.", node->GetName().c_str(), op_desc->GetType().c_str());