#include <MemoryManager.h>
Definition at line 58 of file MemoryManager.h.
◆ DynamicMemoryManager()
onert::backend::basic::DynamicMemoryManager::DynamicMemoryManager |
( |
| ) |
|
|
default |
◆ ~DynamicMemoryManager()
virtual onert::backend::basic::DynamicMemoryManager::~DynamicMemoryManager |
( |
| ) |
|
|
virtualdefault |
◆ allocate()
std::shared_ptr< basic::Allocator > onert::backend::basic::DynamicMemoryManager::allocate |
( |
const ITensor * |
tensor, |
|
|
uint32_t |
capacity |
|
) |
| |
◆ deallocate() [1/2]
void onert::backend::basic::DynamicMemoryManager::deallocate |
( |
const ITensor * |
tensor | ) |
|
◆ deallocate() [2/2]
void onert::backend::basic::DynamicMemoryManager::deallocate |
( |
void |
| ) |
|
Definition at line 96 of file MemoryManager.cc.
97{
98 for (auto &&mem_alloc : _mem_alloc_map)
99 {
100
101 mem_alloc.second->release();
102 }
103
104 _mem_alloc_map.clear();
105}
The documentation for this class was generated from the following files: