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 armnn::MemorySourceFlags GetImportFlags() const override
Get flags describing supported import sources.
const armnn::TensorInfo & GetTensorInfo() const
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.
virtual ITensorHandle * GetParent() const override
Get the parent tensor if this is a subtensor.
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.
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.
TensorShape GetUnpaddedTensorStrides(const TensorInfo &tensorInfo)
unsigned int MemorySourceFlags