| @@ -113,7 +113,7 @@ Status GEInitializeImpl(const std::map<string, string> &options) { | |||||
| if (!is_proto_init) { | if (!is_proto_init) { | ||||
| GELOGE(GE_CLI_INIT_FAILED, | GELOGE(GE_CLI_INIT_FAILED, | ||||
| "[Init][OpsProtoPath]Loading OpsProto lib plugin failed, OpsProtoPath:%s invalid.", | "[Init][OpsProtoPath]Loading OpsProto lib plugin failed, OpsProtoPath:%s invalid.", | ||||
| opsproto_path.c_str()); | |||||
| opsproto_path.c_str()); | |||||
| REPORT_CALL_ERROR("E19999", "Loading OpsProto lib plugin failed, OpsProtoPath:%s invalid", | REPORT_CALL_ERROR("E19999", "Loading OpsProto lib plugin failed, OpsProtoPath:%s invalid", | ||||
| opsproto_path.c_str()); | opsproto_path.c_str()); | ||||
| return FAILED; | return FAILED; | ||||
| @@ -488,7 +488,7 @@ Status Session::RemoveGraph(uint32_t graph_id) { | |||||
| GELOGE(GE_CLI_GE_NOT_INITIALIZED, | GELOGE(GE_CLI_GE_NOT_INITIALIZED, | ||||
| "[Remove][Graph]Failed, GELib instance is nullptr or is not InitFlag "); | "[Remove][Graph]Failed, GELib instance is nullptr or is not InitFlag "); | ||||
| REPORT_INNER_ERROR("E19999", | REPORT_INNER_ERROR("E19999", | ||||
| "RemoveGraph Failed, GELib instance is nullptr or is not InitFlag."); | |||||
| "RemoveGraph Failed, GELib instance is nullptr or is not InitFlag."); | |||||
| return FAILED; | return FAILED; | ||||
| } | } | ||||
| @@ -614,7 +614,7 @@ Status Session::BuildGraph(uint32_t graph_id, const std::vector<InputTensorInfo> | |||||
| ErrorManager::GetInstance().GenWorkStreamIdBySessionGraph(sessionId_, graph_id); | ErrorManager::GetInstance().GenWorkStreamIdBySessionGraph(sessionId_, graph_id); | ||||
| std::shared_ptr<GELib> instance_ptr = ge::GELib::GetInstance(); | std::shared_ptr<GELib> instance_ptr = ge::GELib::GetInstance(); | ||||
| if (instance_ptr == nullptr || !instance_ptr->InitFlag()) { | if (instance_ptr == nullptr || !instance_ptr->InitFlag()) { | ||||
| GELOGE(GE_CLI_GE_NOT_INITIALIZED, | |||||
| GELOGE(GE_CLI_GE_NOT_INITIALIZED, | |||||
| "[Build][Graph]Failed, the GELib instance is nullptr or is not InitFlag."); | "[Build][Graph]Failed, the GELib instance is nullptr or is not InitFlag."); | ||||
| REPORT_INNER_ERROR("E19999", | REPORT_INNER_ERROR("E19999", | ||||
| "Build graph failed, the GELib instance is nullptr or is not InitFlag."); | "Build graph failed, the GELib instance is nullptr or is not InitFlag."); | ||||
| @@ -102,8 +102,8 @@ Status DumpOp::DumpOutput(aicpu::dump::Task &task) { | |||||
| } | } | ||||
| int64_t output_size = 0; | int64_t output_size = 0; | ||||
| if (TensorUtils::GetTensorSizeInBytes(output_descs.at(i), output_size) != SUCCESS) { | if (TensorUtils::GetTensorSizeInBytes(output_descs.at(i), output_size) != SUCCESS) { | ||||
| GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Get][TensorSize]Failed, output_size %d", output_size); | |||||
| REPORT_CALL_ERROR("E19999", "Get output_size %d failed", output_size); | |||||
| GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Get][TensorSize]Failed, output_size %ld", output_size); | |||||
| REPORT_CALL_ERROR("E19999", "Get output_size %ld failed", output_size); | |||||
| return ACL_ERROR_GE_INTERNAL_ERROR; | return ACL_ERROR_GE_INTERNAL_ERROR; | ||||
| } | } | ||||
| GELOGD("Get output size in lanch dump op is %ld", output_size); | GELOGD("Get output size in lanch dump op is %ld", output_size); | ||||
| @@ -421,7 +421,8 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::SaveToOmRoo | |||||
| auto ret = SaveModelHeader(om_file_save_helper, first_ge_model, model_names.size()); | auto ret = SaveModelHeader(om_file_save_helper, first_ge_model, model_names.size()); | ||||
| if (ret != SUCCESS) { | if (ret != SUCCESS) { | ||||
| GELOGE(INTERNAL_ERROR, "[Save][ModelHeader]Failed, model name %s", first_ge_model->GetName().c_str()); | |||||
| GELOGE(INTERNAL_ERROR, "[Save][ModelHeader]Failed, model name %s", | |||||
| first_ge_model->GetName().c_str()); | |||||
| REPORT_INNER_ERROR("E19999", "Save model %s header failed", first_ge_model->GetName().c_str()); | REPORT_INNER_ERROR("E19999", "Save model %s header failed", first_ge_model->GetName().c_str()); | ||||
| return INTERNAL_ERROR; | return INTERNAL_ERROR; | ||||
| } | } | ||||
| @@ -576,7 +577,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::LoadModel(c | |||||
| FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::LoadRootModel(const ge::ModelData &model_data) { | FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::LoadRootModel(const ge::ModelData &model_data) { | ||||
| if (model_data.model_data == nullptr || model_data.model_len == 0) { | if (model_data.model_data == nullptr || model_data.model_len == 0) { | ||||
| GELOGE(ACL_ERROR_GE_EXEC_MODEL_DATA_SIZE_INVALID, "[Load][RootModel]" | |||||
| GELOGE(ACL_ERROR_GE_EXEC_MODEL_DATA_SIZE_INVALID, "[Load][RootModel] " | |||||
| "Model_data is nullptr or model_data_size is 0"); | "Model_data is nullptr or model_data_size is 0"); | ||||
| REPORT_INNER_ERROR("E19999", "Load root model failed, model_data is nullptr or its size is 0"); | REPORT_INNER_ERROR("E19999", "Load root model failed, model_data is nullptr or its size is 0"); | ||||
| return ACL_ERROR_GE_EXEC_MODEL_DATA_SIZE_INVALID; | return ACL_ERROR_GE_EXEC_MODEL_DATA_SIZE_INVALID; | ||||
| @@ -1016,7 +1017,7 @@ Status ModelTool::GetModelInfoFromOm(const char *model_file, ge::proto::ModelDef | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10003", | ErrorManager::GetInstance().ATCReportErrMessage("E10003", | ||||
| {"parameter", "value", "reason"}, {"om", model_file, "invalid om file"}); | {"parameter", "value", "reason"}, {"om", model_file, "invalid om file"}); | ||||
| GELOGE(ACL_ERROR_GE_PARAM_INVALID, | GELOGE(ACL_ERROR_GE_PARAM_INVALID, | ||||
| "[Parse][ModelContent]Failed because of invalid om file. Please check --om param."); | |||||
| "[Parse][ModelContent]Failed because of invalid om file. Please check om param."); | |||||
| return ret; | return ret; | ||||
| } | } | ||||