Browse Source

fix nullptr check

tags/v1.1.0
weiyang 4 years ago
parent
commit
dc9a618aad
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ge/graph/load/new_model_manager/task_info/memcpy_async_task_info.cc

+ 2
- 1
ge/graph/load/new_model_manager/task_info/memcpy_async_task_info.cc View File

@@ -95,7 +95,8 @@ Status MemcpyAsyncTaskInfo::Distribute() {
}

Status MemcpyAsyncTaskInfo::CalculateArgs(const domi::TaskDef &task_def, DavinciModel *davinci_model) {
OpDescPtr op_desc = davinci_model_->GetOpByIndex(task_def.memcpy_async().op_index());
GE_CHECK_NOTNULL(davinci_model);
OpDescPtr op_desc = davinci_model->GetOpByIndex(task_def.memcpy_async().op_index());
// the num of src and dst size is 2
uint32_t args_size = sizeof(void *) * 2;
args_offset_ = davinci_model->GetTotalArgsSize();


Loading…
Cancel
Save