75 const std::function<
void(
void*)>& deleter)
Blob(const Device &device, void *data_ptr, const std::function< void(void *)> &deleter)
Definition: Blob.h:73
Device device_
Device context for the blob.
Definition: Blob.h:104
void * data_ptr_
Device data pointer.
Definition: Blob.h:101
Definition: MemoryManager.h:41
const void * GetDataPtr() const
Definition: Blob.h:94
Blob(int64_t byte_size, const Device &device)
Definition: Blob.h:61
~Blob()
Definition: Blob.h:78
Definition: Open3DViewer.h:29
void * GetDataPtr()
Definition: Blob.h:92
std::function< void(void *)> deleter_
For externally managed memory, deleter != nullptr.
Definition: Blob.h:98
static void Free(void *ptr, const Device &device)
Definition: MemoryManager.cpp:43
Device GetDevice() const
Definition: Blob.h:90