HDK
|
Represents native memory allocation coming from one of the OrtAllocators registered with OnnxRuntime. Use it to wrap an allocation made by an allocator so it can be automatically released when no longer needed. More...
#include <onnxruntime_cxx_api.h>
Public Member Functions | |
MemoryAllocation (OrtAllocator *allocator, void *p, size_t size) | |
~MemoryAllocation () | |
MemoryAllocation (const MemoryAllocation &)=delete | |
MemoryAllocation & | operator= (const MemoryAllocation &)=delete |
MemoryAllocation (MemoryAllocation &&) noexcept | |
MemoryAllocation & | operator= (MemoryAllocation &&) noexcept |
void * | get () |
size_t | size () const |
Represents native memory allocation coming from one of the OrtAllocators registered with OnnxRuntime. Use it to wrap an allocation made by an allocator so it can be automatically released when no longer needed.
Definition at line 1823 of file onnxruntime_cxx_api.h.
|
inline |
Definition at line 179 of file onnxruntime_cxx_inline.h.
|
inline |
Definition at line 183 of file onnxruntime_cxx_inline.h.
|
delete |
|
inlinenoexcept |
Definition at line 191 of file onnxruntime_cxx_inline.h.
|
inline |
Definition at line 1831 of file onnxruntime_cxx_api.h.
|
delete |
|
inlinenoexcept |
Definition at line 195 of file onnxruntime_cxx_inline.h.
|
inline |
Definition at line 1832 of file onnxruntime_cxx_api.h.