From f1fd01422ac998021df528b786a0ed1e1d5310fa Mon Sep 17 00:00:00 2001 From: lichun Date: Sat, 23 Jan 2021 12:31:39 +0800 Subject: [PATCH] rectify error codes --- ge/graph/load/model_manager/davinci_model.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/ge/graph/load/model_manager/davinci_model.cc b/ge/graph/load/model_manager/davinci_model.cc index ed7ce006..4aefe5e5 100755 --- a/ge/graph/load/model_manager/davinci_model.cc +++ b/ge/graph/load/model_manager/davinci_model.cc @@ -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.");