24.08
|
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;
unsigned int MemorySourceFlags
TensorShape GetUnpaddedTensorStrides(const TensorInfo &tensorInfo)
virtual void Allocate() override
Indicate to the memory manager that this resource is no longer active.
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 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.
armnn::TensorShape GetStrides() const override
Get the strides for each dimension ordered from largest to smallest where the smallest value is the s...
const TensorShape & GetShape() const
armnn::TensorShape GetShape() const override
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest ite...
MemorySource
Define the Memory Source to reduce copies.
virtual bool Import(void *memory, armnn::MemorySource source) override
Import externally allocated memory.
const armnn::TensorInfo & GetTensorInfo() const
SampleTensorHandle(const armnn::TensorInfo &tensorInfo, std::shared_ptr< SampleMemoryManager > &memoryManager)
virtual void Unmap() const override
Unmap the tensor data.