#include <allocator.h>
|
static bool | CalcMemSizeForArray (size_t nmemb, size_t size, size_t *out) noexcept |
|
static bool | CalcMemSizeForArrayWithAlignment (size_t nmemb, size_t size, size_t alignment, size_t *out) noexcept |
|
template<size_t alignment> |
static bool | CalcMemSizeForArrayWithAlignment (size_t nmemb, size_t size, size_t *out) noexcept |
|
template<typename T > |
static IAllocatorUniquePtr< T > | MakeUniquePtr (std::shared_ptr< IAllocator > allocator, size_t count_or_bytes, bool use_reserve=false, Stream *stream=nullptr, WaitNotificationFn wait_fn=nullptr) |
|
template<typename T > |
static IAllocatorUniquePtr< T > | MakeUniquePtrFromOrtAllocator (OrtAllocator *ort_allocator, size_t count_or_bytes) |
|
Definition at line 251 of file allocator.h.
onnxruntime::CPUAllocator::CPUAllocator |
( |
const OrtMemoryInfo & |
memory_info | ) |
|
|
inlineexplicit |
onnxruntime::CPUAllocator::CPUAllocator |
( |
| ) |
|
|
inline |
void* onnxruntime::CPUAllocator::Alloc |
( |
size_t |
size | ) |
|
|
overridevirtual |
Allocate memory of the specified size. If size is 0, nullptr is returned. If allocation fails, an exception is thrown.
Implements onnxruntime::IAllocator.
void onnxruntime::CPUAllocator::Free |
( |
void * |
p | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: