24 virtual void Manage()
override;
33 virtual const void*
Map(
bool )
const override;
34 using ITensorHandle::Map;
36 virtual void Unmap()
const override 63 void CopyOutTo(
void*)
const override;
64 void CopyInFrom(
const void*)
override;
66 void* GetPointer()
const;
73 std::shared_ptr<SampleMemoryManager> m_MemoryManager;
75 mutable void *m_UnmanagedMemory;
const TensorShape & GetShape() const
virtual ITensorHandle * GetParent() const override
Get the parent tensor if this is a subtensor.
unsigned int MemorySourceFlags
virtual armnn::MemorySourceFlags GetImportFlags() const override
Get flags describing supported import sources.
virtual void Allocate() override
Indicate to the memory manager that this resource is no longer active.
SampleTensorHandle(const armnn::TensorInfo &tensorInfo, std::shared_ptr< SampleMemoryManager > &memoryManager)
armnn::TensorShape GetShape() const override
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest ite...
TensorShape GetUnpaddedTensorStrides(const TensorInfo &tensorInfo)
virtual void Unmap() const override
Unmap the tensor data.
const armnn::TensorInfo & GetTensorInfo() const
MemorySource
Define the Memory Source to reduce copies.
virtual void Manage() override
Indicate to the memory manager that this resource is active.
armnn::TensorShape GetStrides() const override
Get the strides for each dimension ordered from largest to smallest where the smallest value is the s...
virtual const void * Map(bool) const override
Map the tensor data for access.
virtual bool Import(void *memory, armnn::MemorySource source) override
Import externally allocated memory.