diff --git a/ge/engine_manager/dnnengine_manager.cc b/ge/engine_manager/dnnengine_manager.cc index 36f11828..a5a406f0 100644 --- a/ge/engine_manager/dnnengine_manager.cc +++ b/ge/engine_manager/dnnengine_manager.cc @@ -270,7 +270,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()); @@ -282,7 +282,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 7c5cb330..d39e8240 100644 --- a/ge/generator/ge_generator.cc +++ b/ge/generator/ge_generator.cc @@ -147,14 +147,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 c5976f11..f66595ca 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()); diff --git a/tests/ut/ge/generator/ge_generator_unittest.cc b/tests/ut/ge/generator/ge_generator_unittest.cc index b3abb2f9..8e24919c 100644 --- a/tests/ut/ge/generator/ge_generator_unittest.cc +++ b/tests/ut/ge/generator/ge_generator_unittest.cc @@ -186,4 +186,14 @@ TEST_F(UtestGeGenerator, test_generate_online_model) { std::string name; EXPECT_NE(generator.GenerateOfflineModel(graph, name, inputs), SUCCESS); } + +TEST_F(UtestGeGenerator, test_check_engine_type_support) { + GeTensorDesc tensor_desc; + shared_ptr op_desc = make_shared("Add", "add"); + op_desc->AddInputDesc(tensor_desc); + op_desc->AddInputDesc(tensor_desc); + op_desc->AddOutputDesc(tensor_desc); + + EXPECT_EQ(CheckEngineTypeSupport(op_desc, ENGINE_AIVECTOR), FAILED); +} } // namespace ge