@@ -66,8 +66,8 @@ graphStatus KeepDtypeFunc(ComputeGraphPtr &graph, const std::string &cfg_path) { | |||||
} | } | ||||
std::ifstream ifs(real_path); | std::ifstream ifs(real_path); | ||||
if (!ifs.is_open()) { | if (!ifs.is_open()) { | ||||
GELOGE(GRAPH_FAILED, "[Open][File] %s failed", cfg_path.c_str()); | |||||
REPORT_INPUT_ERROR("E10411", std::vector<std::string>({"cfgpath"}), std::vector<std::string>({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; | return GRAPH_FAILED; | ||||
} | } | ||||
@@ -37,7 +37,7 @@ graphStatus WeightCompressFunc(ComputeGraphPtr &graph, const string &cfg_path) { | |||||
std::ifstream ifs(real_path); | std::ifstream ifs(real_path); | ||||
if (!ifs.is_open()) { | if (!ifs.is_open()) { | ||||
GELOGE(GRAPH_FAILED, "[Open][File] %s failed", cfg_path.c_str()); | GELOGE(GRAPH_FAILED, "[Open][File] %s failed", cfg_path.c_str()); | ||||
REPORT_INPUT_ERROR("E10411", std::vector<std::string>({"cfgpath"}), std::vector<std::string>({cfg_path})); | |||||
REPORT_INNER_ERROR("E19999", "open file:%s failed.", cfg_path.c_str()); | |||||
return GRAPH_FAILED; | return GRAPH_FAILED; | ||||
} | } | ||||
@@ -84,7 +84,7 @@ Status SingleOp::ValidateArgs(const std::vector<DataBuffer> &inputs, const std:: | |||||
GELOGE(ACL_ERROR_GE_PARAM_INVALID, | GELOGE(ACL_ERROR_GE_PARAM_INVALID, | ||||
"[Check][Param:inputs]Input num mismatch. model expect %zu, but given %zu", input_addr_list_.size(), | "[Check][Param:inputs]Input num mismatch. model expect %zu, but given %zu", input_addr_list_.size(), | ||||
inputs.size()); | inputs.size()); | ||||
REPORT_INPUT_ERROR("E10401", std::vector<std::string>({"expect_size", "input_size"}), | |||||
REPORT_INPUT_ERROR("E10401", std::vector<std::string>({"expect_num", "input_num"}), | |||||
std::vector<std::string>({std::to_string(input_addr_list_.size()), std::to_string(num_inputs)})); | std::vector<std::string>({std::to_string(input_addr_list_.size()), std::to_string(num_inputs)})); | ||||
return ACL_ERROR_GE_PARAM_INVALID; | return ACL_ERROR_GE_PARAM_INVALID; | ||||
} | } | ||||
@@ -109,7 +109,7 @@ Status SingleOp::ValidateArgs(const std::vector<DataBuffer> &inputs, const std:: | |||||
if (num_outputs != output_sizes_.size()) { | if (num_outputs != output_sizes_.size()) { | ||||
GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Param:outputs]output num mismatch. model expect %zu, but given %zu", | GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Param:outputs]output num mismatch. model expect %zu, but given %zu", | ||||
output_sizes_.size(), outputs.size()); | output_sizes_.size(), outputs.size()); | ||||
REPORT_INPUT_ERROR("E10403", std::vector<std::string>({"expect_size", "input_size"}), | |||||
REPORT_INPUT_ERROR("E10403", std::vector<std::string>({"expect_num", "input_num"}), | |||||
std::vector<std::string>({std::to_string(output_sizes_.size()), std::to_string(outputs.size())})); | std::vector<std::string>({std::to_string(output_sizes_.size()), std::to_string(outputs.size())})); | ||||
return ACL_ERROR_GE_PARAM_INVALID; | return ACL_ERROR_GE_PARAM_INVALID; | ||||
} | } | ||||
@@ -244,7 +244,7 @@ Status DynamicSingleOp::ValidateParams(const vector<GeTensorDesc> &input_desc, | |||||
if (output_desc.size() != num_outputs_) { | if (output_desc.size() != num_outputs_) { | ||||
GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Param:output_desc]Output number mismatches. expect %zu, but given %zu", | GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Param:output_desc]Output number mismatches. expect %zu, but given %zu", | ||||
num_outputs_, output_desc.size()); | num_outputs_, output_desc.size()); | ||||
REPORT_INPUT_ERROR("E10408", std::vector<std::string>({"expect_num", "input_num"}), | |||||
REPORT_INPUT_ERROR("E10403", std::vector<std::string>({"expect_num", "input_num"}), | |||||
std::vector<std::string>({std::to_string(num_outputs_), std::to_string(output_desc.size())})); | std::vector<std::string>({std::to_string(num_outputs_), std::to_string(output_desc.size())})); | ||||
return ACL_ERROR_GE_PARAM_INVALID; | return ACL_ERROR_GE_PARAM_INVALID; | ||||
} | } | ||||
@@ -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); | GELOGI("GetOpFromModel in. model name = %s, model id = %lu", model_name.c_str(), model_id); | ||||
if (single_op == nullptr) { | if (single_op == nullptr) { | ||||
GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Check][Param:single_op] is null."); | GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Check][Param:single_op] is null."); | ||||
REPORT_INPUT_ERROR("E10412", std::vector<std::string>(), std::vector<std::string>()); | |||||
REPORT_INPUT_ERROR("E10412", std::vector<std::string>({"inputparam"}), std::vector<std::string>({"single_op"})); | |||||
return ACL_ERROR_GE_INTERNAL_ERROR; | return ACL_ERROR_GE_INTERNAL_ERROR; | ||||
} | } | ||||
@@ -796,8 +796,8 @@ Status AiCpuTask::SetMemCopyTask(const domi::KernelExDef &kernel_def) { | |||||
if (kernel_def.args_size() > sizeof(STR_FWK_OP_KERNEL)) { | 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", | 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()); | sizeof(STR_FWK_OP_KERNEL), kernel_def.args_size()); | ||||
REPORT_INPUT_ERROR("E10409", std::vector<std::string>({"op_kernel_size", "args_size"}), | |||||
std::vector<std::string>({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; | return ACL_ERROR_GE_PARAM_INVALID; | ||||
} | } | ||||
GE_CHK_RT_RET(rtMalloc(©_workspace_buf_, kernel_def.task_info_size(), RT_MEMORY_HBM)); | GE_CHK_RT_RET(rtMalloc(©_workspace_buf_, kernel_def.task_info_size(), RT_MEMORY_HBM)); | ||||