24.08
|
#include <MemoryManager.hpp>
Public Member Functions | |
void | StoreMemToAllocate (std::vector< BufferStorage > bufferStorageVector, std::shared_ptr< ICustomAllocator > customAllocator, size_t typeAlignment=0) |
Initialization method to store in m_AllocatorBufferStoragePairVector all information needed. More... | |
void | Allocate () |
Allocate the amount of memory indicated by m_BufferSize, and point each m_Data to each correspondent Tensor so that they are m_Offset bytes separated. More... | |
void | Deallocate () |
Deallocate memory. More... | |
Definition at line 39 of file MemoryManager.hpp.
void Allocate | ( | ) |
Allocate the amount of memory indicated by m_BufferSize, and point each m_Data to each correspondent Tensor so that they are m_Offset bytes separated.
Definition at line 23 of file MemoryManager.cpp.
void Deallocate | ( | ) |
Deallocate memory.
Definition at line 41 of file MemoryManager.cpp.
void StoreMemToAllocate | ( | std::vector< BufferStorage > | bufferStorageVector, |
std::shared_ptr< ICustomAllocator > | customAllocator, | ||
size_t | typeAlignment = 0 |
||
) |
Initialization method to store in m_AllocatorBufferStoragePairVector all information needed.
[in] | bufferStorageVector | - Vector of BufferStorage. |
[in] | customAllocator | - Pointer to ICustomAllocator. |
[in] | typeAlignment | - Optional parameter. Value of which the size of each value has to be multiple of. |
Definition at line 13 of file MemoryManager.cpp.
References armnn::IgnoreUnused().