diff --git a/ge/common/helper/model_helper.cc b/ge/common/helper/model_helper.cc index f57d7b67..ebfec9cc 100644 --- a/ge/common/helper/model_helper.cc +++ b/ge/common/helper/model_helper.cc @@ -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.");