Browse Source

Fix code check

tags/v1.2.0
dongduo 4 years ago
parent
commit
608e9f09d1
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      ge/graph/load/new_model_manager/model_manager.cc

+ 1
- 4
ge/graph/load/new_model_manager/model_manager.cc View File

@@ -1086,10 +1086,7 @@ Status ModelManager::GenSessionId(uint64_t &session_id) {
Status ModelManager::LoadModelOffline(uint32_t &model_id, const ModelData &model, shared_ptr<ModelListener> listener,
void *dev_ptr, size_t mem_size, void *weight_ptr, size_t weight_size) {
GE_CHK_BOOL_RET_STATUS(model.key.empty() || mmAccess2(model.key.c_str(), M_F_OK) == EN_OK,
ACL_ERROR_GE_PARAM_INVALID,
"input key file path %s is invalid, %s",
model.key.c_str(),
strerror(errno));
ACL_ERROR_GE_PARAM_INVALID, "input key file path %s is invalid, %s", model.key.c_str(), strerror(errno));
GenModelId(&model_id);

shared_ptr<DavinciModel> davinci_model = nullptr;


Loading…
Cancel
Save