Browse Source

rectify error codes

tags/v1.2.0
lichun 4 years ago
parent
commit
f1fd01422a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      ge/graph/load/model_manager/davinci_model.cc

+ 1
- 0
ge/graph/load/model_manager/davinci_model.cc View File

@@ -624,6 +624,7 @@ void DavinciModel::OpDebugUnRegister() {
// initialize op sequence and call initialization function of each op respectively
Status DavinciModel::Init(void *dev_ptr, size_t mem_size, void *weight_ptr, size_t weight_size) {
// validating params
GELOGI("Priority is %d", priority_);
GE_CHK_BOOL_TRUE_EXEC_WITH_LOG(priority_ < 0 || priority_ > 7, return PARAM_INVALID,
"Priority must between 0-7, now is %d", priority_);
GE_CHK_BOOL_RET_STATUS(ge_model_ != nullptr, PARAM_INVALID, "GeModel is null.");


Loading…
Cancel
Save