23.05
|
Go to the documentation of this file.
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;
virtual ITensorHandle * GetParent() const override
Get the parent tensor if this is a subtensor.
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.
MemorySource
Define the Memory Source to reduce copies.
SampleTensorHandle(const armnn::TensorInfo &tensorInfo, std::shared_ptr< SampleMemoryManager > &memoryManager)
virtual void Unmap() const override
Unmap the tensor data.
armnn::TensorShape GetShape() const override
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest ite...
const TensorShape & GetShape() const
const armnn::TensorInfo & GetTensorInfo() const
virtual void Manage() override
Indicate to the memory manager that this resource is active.
TensorShape GetUnpaddedTensorStrides(const TensorInfo &tensorInfo)
virtual const void * Map(bool) const override
Map the tensor data for access.
unsigned int MemorySourceFlags
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...