Browse Source

fix ut

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

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

@@ -881,7 +881,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelHelper::GetModelNam
return SUCCESS;
}

FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelTool::GetModelInfoFromOm(const char *model_file,
/*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_CHECK_NOTNULL(model_file);
@@ -974,5 +974,5 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ModelTool::GetModelInfoF
GELOGE(FAILED, "ParseFromString failed. exception message : %s", e.what());
return FAILED;
}
}
}*/
} // namespace ge

+ 2
- 2
ge/init/gelib.cc View File

@@ -533,7 +533,7 @@ void GELib::RollbackInit() {
VarManagerPool::Instance().Destory();
}

Status GEInit::Initialize(const map<string, string> &options) {
/*Status GEInit::Initialize(const map<string, string> &options) {
Status ret = SUCCESS;
std::shared_ptr<GELib> instance_ptr = ge::GELib::GetInstance();
if (instance_ptr == nullptr || !instance_ptr->InitFlag()) {
@@ -548,5 +548,5 @@ Status GEInit::Finalize() {

string GEInit::GetPath() {
return GELib::GetPath();
}
}*/
} // namespace ge

Loading…
Cancel
Save