Browse Source

ge log optimize

tags/v1.3.0
liyihan2@huawei.com 3 years ago
parent
commit
c6df234185
3 changed files with 10 additions and 9 deletions
  1. +1
    -0
      ge/common/dump/dump_manager.cc
  2. +2
    -2
      ge/common/dump/dump_op.cc
  3. +7
    -7
      ge/common/helper/model_helper.cc

+ 1
- 0
ge/common/dump/dump_manager.cc View File

@@ -86,6 +86,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status DumpManager::SetDumpConf
dump_path = dump_config.dump_path; dump_path = dump_config.dump_path;
if (dump_path.empty()) { if (dump_path.empty()) {
GELOGE(PARAM_INVALID, "[Check][DumpPath]It is empty"); GELOGE(PARAM_INVALID, "[Check][DumpPath]It is empty");
REPORT_INNER_ERROR("E19999", "Dump path check is empty");
return PARAM_INVALID; return PARAM_INVALID;
} }




+ 2
- 2
ge/common/dump/dump_op.cc View File

@@ -130,8 +130,8 @@ Status DumpOp::DumpInput(aicpu::dump::Task &task) {
} }
int64_t input_size = 0; int64_t input_size = 0;
if (TensorUtils::GetTensorSizeInBytes(input_descs.at(i), input_size) != SUCCESS) { if (TensorUtils::GetTensorSizeInBytes(input_descs.at(i), input_size) != SUCCESS) {
GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Get][TensorSize]Failed, input_size %d", input_size);
REPORT_CALL_ERROR("E19999", "Get input size %d failed", input_size);
GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Get][TensorSize]Failed, input_size %ld", input_size);
REPORT_CALL_ERROR("E19999", "Get input size %ld failed", input_size);
return ACL_ERROR_GE_INTERNAL_ERROR; return ACL_ERROR_GE_INTERNAL_ERROR;
} }
GELOGD("Get input size in lanch dump op is %ld", input_size); GELOGD("Get input size in lanch dump op is %ld", input_size);


+ 7
- 7
ge/common/helper/model_helper.cc View File

@@ -533,14 +533,14 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::LoadModel(c


if (ReleaseLocalModelData() != SUCCESS) { if (ReleaseLocalModelData() != SUCCESS) {
GELOGE(ACL_ERROR_GE_EXEC_RELEASE_MODEL_DATA, "[Release][ModelData]Failed."); GELOGE(ACL_ERROR_GE_EXEC_RELEASE_MODEL_DATA, "[Release][ModelData]Failed.");
REPORT_INNER_ERROR("E19999", "Release local model data failed");
REPORT_CALL_ERROR("E19999", "Release local model data failed");
return ACL_ERROR_GE_EXEC_RELEASE_MODEL_DATA; return ACL_ERROR_GE_EXEC_RELEASE_MODEL_DATA;
} }


Status status = ModelParserBase::ParseModelContent(model_data, model_addr_tmp_, model_len_tmp_); Status status = ModelParserBase::ParseModelContent(model_data, model_addr_tmp_, model_len_tmp_);
if (status != SUCCESS) { if (status != SUCCESS) {
GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Parse][ModelContent]Failed!"); GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Parse][ModelContent]Failed!");
REPORT_INNER_ERROR("E19999", "Parse model content failed");
REPORT_CALL_ERROR("E19999", "Parse model content failed");
return ACL_ERROR_GE_PARAM_INVALID; return ACL_ERROR_GE_PARAM_INVALID;
} }


@@ -549,7 +549,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::LoadModel(c
status = om_load_helper.Init(model_addr_tmp_, model_len_tmp_); status = om_load_helper.Init(model_addr_tmp_, model_len_tmp_);
if (status != SUCCESS) { if (status != SUCCESS) {
GELOGE(status, "[Init][OmLoadHelper]Failed"); GELOGE(status, "[Init][OmLoadHelper]Failed");
REPORT_INNER_ERROR("E19999", "Om_load_helper init failed");
REPORT_CALL_ERROR("E19999", "Om_load_helper init failed");
model_addr_tmp_ = nullptr; model_addr_tmp_ = nullptr;
return status; return status;
} }
@@ -566,7 +566,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::LoadModel(c
status = GenerateGeModel(om_load_helper); status = GenerateGeModel(om_load_helper);
if (status != SUCCESS) { if (status != SUCCESS) {
GELOGE(status, "[Generate][GEModel]Failed"); GELOGE(status, "[Generate][GEModel]Failed");
REPORT_INNER_ERROR("E19999", "Generate GE model failed");
REPORT_CALL_ERROR("E19999", "Generate GE model failed");
return status; return status;
} }
GELOGD("in ModelHelper::LoadModel, is_assign_model_ is setted to true!"); GELOGD("in ModelHelper::LoadModel, is_assign_model_ is setted to true!");
@@ -591,7 +591,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::LoadRootMod


if (ReleaseLocalModelData() != SUCCESS) { if (ReleaseLocalModelData() != SUCCESS) {
GELOGE(INTERNAL_ERROR, "[Release][ModelData]Failed."); GELOGE(INTERNAL_ERROR, "[Release][ModelData]Failed.");
REPORT_INNER_ERROR("E19999", "Release local root model data failed");
REPORT_CALL_ERROR("E19999", "Release local root model data failed");
return INTERNAL_ERROR; return INTERNAL_ERROR;
} }


@@ -618,7 +618,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::LoadRootMod
} }
if (status != SUCCESS) { if (status != SUCCESS) {
GELOGE(status, "[Init][OmLoadHelper]Failed"); GELOGE(status, "[Init][OmLoadHelper]Failed");
REPORT_INNER_ERROR("E19999", "Om_load_helper init failed");
REPORT_CALL_ERROR("E19999", "Om_load_helper init failed");
model_addr_tmp_ = nullptr; model_addr_tmp_ = nullptr;
return status; return status;
} }
@@ -669,7 +669,7 @@ Status ModelHelper::GenerateGeRootModel(OmFileLoadHelper &om_load_helper) {
if (!is_unknown_shape_model_) { if (!is_unknown_shape_model_) {
if (GenerateGeModel(om_load_helper) != SUCCESS) { if (GenerateGeModel(om_load_helper) != SUCCESS) {
GELOGE(FAILED, "[Generate][GERootModel]Failed"); GELOGE(FAILED, "[Generate][GERootModel]Failed");
REPORT_INNER_ERROR("E19999", "Generate GE root model failed");
REPORT_CALL_ERROR("E19999", "Generate GE root model failed");
return FAILED; return FAILED;
} }
GE_CHECK_NOTNULL(model_); GE_CHECK_NOTNULL(model_);


Loading…
Cancel
Save