#include <memory_manager.h>
◆ Clear()
static void tvm::runtime::memory::MemoryManager::Clear |
( |
| ) |
|
|
static |
◆ GetAllocator()
Get an allocator given the context.
- Parameters
-
dev | The TVM device |
type | The allocator type |
- Returns
- The memory allocator.
◆ GetOrCreateAllocator()
Get or create an allocator given the context and allocator type.
- Parameters
-
dev | The TVM device |
type | The allocator type |
- Returns
- The memory allocator.
◆ Global()
static MemoryManager* tvm::runtime::memory::MemoryManager::Global |
( |
| ) |
|
|
static |
◆ allocators_
std::unordered_map<Device, std::unordered_map<AllocatorType, std::unique_ptr<Allocator> > > tvm::runtime::memory::MemoryManager::allocators_ |
|
protected |
◆ mu_
std::mutex tvm::runtime::memory::MemoryManager::mu_ |
|
protected |
The documentation for this class was generated from the following file: