25 virtual void Manage()
override;
34 virtual const void*
Map(
bool )
const override;
37 virtual void Unmap()
const override 64 void CopyOutTo(
void*)
const override;
65 void CopyInFrom(
const void*)
override;
67 void* GetPointer()
const;
74 std::shared_ptr<RefMemoryManager> m_MemoryManager;
76 mutable void *m_UnmanagedMemory;
virtual void Unmap() const override
Unmap the tensor data.
const TensorShape & GetShape() const
virtual const void * Map(bool) const override
Map the tensor data for access.
unsigned int MemorySourceFlags
Copyright (c) 2020 ARM Limited.
virtual void Allocate() override
Indicate to the memory manager that this resource is no longer active.
RefTensorHandle(const TensorInfo &tensorInfo, std::shared_ptr< RefMemoryManager > &memoryManager)
virtual MemorySourceFlags GetImportFlags() const override
Get flags describing supported import sources.
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)
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 blocking=true) const =0
Map the tensor data for access.
const TensorInfo & GetTensorInfo() const
virtual bool Import(void *memory, MemorySource source) override
Import externally allocated memory.
virtual void Manage() override
Indicate to the memory manager that this resource is active.
virtual ITensorHandle * GetParent() const override
Get the parent tensor if this is a subtensor.