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