Browse Source

test

pull/1138/head
wjm 4 years ago
parent
commit
fa3ee39daf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/common/helper/model_helper.cc

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

@@ -882,11 +882,11 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::GetModelNam
}

FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelTool::GetModelInfoFromOm(const char *model_file,
ge::proto::ModelDef &model_def,
uint32_t &modeldef_size) {
ge::proto::ModelDef &model_def, uint32_t &modeldef_size) {
GE_CHECK_NOTNULL(model_file);
ge::ModelData model;
int32_t priority = 0;

Status ret = ModelParserBase::LoadFromFile(model_file, "", priority, model);
if (ret != SUCCESS) {
GELOGE(ret, "LoadFromFile failed.");


Loading…
Cancel
Save