76 const std::function<
void(
void*)>& deleter)
std::function< void(void *)> deleter_
For externally managed memory, deleter != nullptr.
Definition: Blob.h:99
Device device_
Device context for the blob.
Definition: Blob.h:105
Blob(const Device &device, void *data_ptr, const std::function< void(void *)> &deleter)
Definition: Blob.h:74
static void Free(void *ptr, const Device &device)
Definition: MemoryManager.cpp:44
Device GetDevice() const
Definition: Blob.h:91
Definition: MemoryManager.h:42
void * data_ptr_
Device data pointer.
Definition: Blob.h:102
~Blob()
Definition: Blob.h:79
Definition: PinholeCameraIntrinsic.cpp:35
const void * GetDataPtr() const
Definition: Blob.h:95
void * GetDataPtr()
Definition: Blob.h:93
Blob(int64_t byte_size, const Device &device)
Definition: Blob.h:62