diff --git a/ge/ir_build/attr_options/keep_dtype_option.cc b/ge/ir_build/attr_options/keep_dtype_option.cc index 0bf04f78..c2d87d51 100644 --- a/ge/ir_build/attr_options/keep_dtype_option.cc +++ b/ge/ir_build/attr_options/keep_dtype_option.cc @@ -66,8 +66,8 @@ graphStatus KeepDtypeFunc(ComputeGraphPtr &graph, const std::string &cfg_path) { } std::ifstream ifs(real_path); if (!ifs.is_open()) { - GELOGE(GRAPH_FAILED, "[Open][File] %s failed", cfg_path.c_str()); - REPORT_INPUT_ERROR("E10411", std::vector({"cfgpath"}), std::vector({cfg_path})); + GELOGE(GRAPH_FAILED, "[Open][File] %s failed.", cfg_path.c_str()); + REPORT_INNER_ERROR("E19999", "open file:%s failed.", cfg_path.c_str()); return GRAPH_FAILED; } diff --git a/ge/ir_build/attr_options/weight_compress_option.cc b/ge/ir_build/attr_options/weight_compress_option.cc index 75c9776d..3c057d04 100644 --- a/ge/ir_build/attr_options/weight_compress_option.cc +++ b/ge/ir_build/attr_options/weight_compress_option.cc @@ -37,7 +37,7 @@ graphStatus WeightCompressFunc(ComputeGraphPtr &graph, const string &cfg_path) { std::ifstream ifs(real_path); if (!ifs.is_open()) { GELOGE(GRAPH_FAILED, "[Open][File] %s failed", cfg_path.c_str()); - REPORT_INPUT_ERROR("E10411", std::vector({"cfgpath"}), std::vector({cfg_path})); + REPORT_INNER_ERROR("E19999", "open file:%s failed.", cfg_path.c_str()); return GRAPH_FAILED; } diff --git a/ge/single_op/single_op.cc b/ge/single_op/single_op.cc index 3df833fa..f3f0b647 100755 --- a/ge/single_op/single_op.cc +++ b/ge/single_op/single_op.cc @@ -84,7 +84,7 @@ Status SingleOp::ValidateArgs(const std::vector &inputs, const std:: GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Param:inputs]Input num mismatch. model expect %zu, but given %zu", input_addr_list_.size(), inputs.size()); - REPORT_INPUT_ERROR("E10401", std::vector({"expect_size", "input_size"}), + REPORT_INPUT_ERROR("E10401", std::vector({"expect_num", "input_num"}), std::vector({std::to_string(input_addr_list_.size()), std::to_string(num_inputs)})); return ACL_ERROR_GE_PARAM_INVALID; } @@ -109,7 +109,7 @@ Status SingleOp::ValidateArgs(const std::vector &inputs, const std:: if (num_outputs != output_sizes_.size()) { GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Param:outputs]output num mismatch. model expect %zu, but given %zu", output_sizes_.size(), outputs.size()); - REPORT_INPUT_ERROR("E10403", std::vector({"expect_size", "input_size"}), + REPORT_INPUT_ERROR("E10403", std::vector({"expect_num", "input_num"}), std::vector({std::to_string(output_sizes_.size()), std::to_string(outputs.size())})); return ACL_ERROR_GE_PARAM_INVALID; } @@ -244,7 +244,7 @@ Status DynamicSingleOp::ValidateParams(const vector &input_desc, if (output_desc.size() != num_outputs_) { GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Param:output_desc]Output number mismatches. expect %zu, but given %zu", num_outputs_, output_desc.size()); - REPORT_INPUT_ERROR("E10408", std::vector({"expect_num", "input_num"}), + REPORT_INPUT_ERROR("E10403", std::vector({"expect_num", "input_num"}), std::vector({std::to_string(num_outputs_), std::to_string(output_desc.size())})); return ACL_ERROR_GE_PARAM_INVALID; } diff --git a/ge/single_op/single_op_manager.cc b/ge/single_op/single_op_manager.cc index 12fc059a..6569764c 100644 --- a/ge/single_op/single_op_manager.cc +++ b/ge/single_op/single_op_manager.cc @@ -35,7 +35,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status SingleOpManager::GetOpFr GELOGI("GetOpFromModel in. model name = %s, model id = %lu", model_name.c_str(), model_id); if (single_op == nullptr) { GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Check][Param:single_op] is null."); - REPORT_INPUT_ERROR("E10412", std::vector(), std::vector()); + REPORT_INPUT_ERROR("E10412", std::vector({"inputparam"}), std::vector({"single_op"})); return ACL_ERROR_GE_INTERNAL_ERROR; } diff --git a/ge/single_op/task/op_task.cc b/ge/single_op/task/op_task.cc index 6e744733..2a580c7e 100755 --- a/ge/single_op/task/op_task.cc +++ b/ge/single_op/task/op_task.cc @@ -796,8 +796,8 @@ Status AiCpuTask::SetMemCopyTask(const domi::KernelExDef &kernel_def) { if (kernel_def.args_size() > sizeof(STR_FWK_OP_KERNEL)) { GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Size]sizeof STR_FWK_OP_KERNEL is: %lu, but args_size is: %d", sizeof(STR_FWK_OP_KERNEL), kernel_def.args_size()); - REPORT_INPUT_ERROR("E10409", std::vector({"op_kernel_size", "args_size"}), - std::vector({std::to_string(sizeof(STR_FWK_OP_KERNEL)), std::to_string(kernel_def.args_size())})); + REPORT_INNER_ERROR("E19999", "[sizeof STR_FWK_OP_KERNEL is: %lu, but args_size is: %d", + sizeof(STR_FWK_OP_KERNEL), kernel_def.args_size()); return ACL_ERROR_GE_PARAM_INVALID; } GE_CHK_RT_RET(rtMalloc(©_workspace_buf_, kernel_def.task_info_size(), RT_MEMORY_HBM));