Browse Source

assign size when malloc memory

tags/v1.1.0
wilfChen 5 years ago
parent
commit
a45bad14c0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mindspore/ccsrc/runtime/device/memory_manager.cc

+ 1
- 0
mindspore/ccsrc/runtime/device/memory_manager.cc View File

@@ -220,6 +220,7 @@ bool MemoryManager::MallocMemFromMemPool(const DeviceAddressPtr address, size_t
return false;
}
address->ptr_ = device_ptr;
address->size_ = size;
address->from_mem_pool_ = true;
return true;
}


Loading…
Cancel
Save