Browse Source

io_addrs mistake

pull/803/head
zhangxiaokun 5 years ago
parent
commit
61a112825f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/load/new_model_manager/davinci_model.cc

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

@@ -2807,7 +2807,7 @@ void *DavinciModel::GetRunAddress(void *addr) const {
return addr;
}

uintptr_t ptr = reinterpret_cast<uintptr_t>(io_addrs[i]);
uintptr_t ptr = reinterpret_cast<uintptr_t>(addr);
if ((fixed_mem_base_ <= ptr) && (ptr < fixed_mem_base_ + runtime_param_.mem_size)) {
return mem_base_ + (ptr - fixed_mem_base_);
} else {


Loading…
Cancel
Save