24.08
|
Go to the documentation of this file.
47 std::shared_ptr<ICustomAllocator> customAllocator,
48 size_t typeAlignment = 0);
58 std::vector<std::pair<Allocator, std::vector<BufferStorage>>> m_AllocatorBufferStoragePairVector;
void * m_Data
Pointer to the tensor value.
std::vector< std::shared_ptr< TensorMemory > > m_TensorMemoryVector
Vector of pointer to @TensorMemory.
size_t m_Alignment
Value which the size of each buffer (actual data size + padding) has to be a multiple of.
void Allocate()
Allocate the amount of memory indicated by m_BufferSize, and point each m_Data to each correspondent ...
size_t m_Offset
Number of bytes the value is away from the @BufferStorage.m_Buffer.
void * m_Buffer
Pointer to the first element of the buffer.
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.
size_t m_BufferSize
Total size of the buffer.
unsigned int m_OutputSlotId
Identifier to be used by the @LoadedNetwork to order the tensors.
Copyright (c) 2021 ARM Limited and Contributors.
std::shared_ptr< ICustomAllocator > m_CustomAllocator
Pointer to @ICustomAllocator.
void Deallocate()
Deallocate memory.