21.05
|
#include <ClTensorHandle.hpp>
Public Member Functions | |
ClTensorHandle (const TensorInfo &tensorInfo) | |
ClTensorHandle (const TensorInfo &tensorInfo, DataLayout dataLayout, MemorySourceFlags importFlags=static_cast< MemorySourceFlags >(MemorySource::Undefined)) | |
arm_compute::CLTensor & | GetTensor () override |
arm_compute::CLTensor const & | GetTensor () const override |
virtual void | Allocate () override |
Indicate to the memory manager that this resource is no longer active. More... | |
virtual void | Manage () override |
Indicate to the memory manager that this resource is active. More... | |
virtual const void * | Map (bool blocking=true) const override |
Map the tensor data for access. More... | |
virtual void | Unmap () const override |
Unmap the tensor data. More... | |
virtual ITensorHandle * | GetParent () const override |
Get the parent tensor if this is a subtensor. More... | |
virtual arm_compute::DataType | GetDataType () const override |
virtual void | SetMemoryGroup (const std::shared_ptr< arm_compute::IMemoryGroup > &memoryGroup) override |
TensorShape | GetStrides () const override |
Get the strides for each dimension ordered from largest to smallest where the smallest value is the same as the size of a single element in the tensor. More... | |
TensorShape | GetShape () const override |
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension. More... | |
void | SetImportFlags (MemorySourceFlags importFlags) |
MemorySourceFlags | GetImportFlags () const override |
Get flags describing supported import sources. More... | |
void | SetImportEnabledFlag (bool importEnabledFlag) |
virtual bool | Import (void *memory, MemorySource source) override |
Import externally allocated memory. More... | |
Public Member Functions inherited from ITensorHandle | |
virtual | ~ITensorHandle () |
void * | Map (bool blocking=true) |
Map the tensor data for access. More... | |
void | Unmap () |
Unmap the tensor data that was previously mapped with call to Map(). More... | |
Definition at line 34 of file ClTensorHandle.hpp.
|
inline |
Definition at line 37 of file ClTensorHandle.hpp.
|
inline |
Definition at line 45 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Indicate to the memory manager that this resource is no longer active.
This is used to compute overlapping lifetimes of resources.
Implements ITensorHandle.
Definition at line 57 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 95 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Get flags describing supported import sources.
Reimplemented from ITensorHandle.
Definition at line 120 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Get the parent tensor if this is a subtensor.
Implements ITensorHandle.
Definition at line 93 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension.
Implements ITensorHandle.
Definition at line 110 of file ClTensorHandle.hpp.
Referenced by ClRankWorkload::Execute().
|
inlineoverridevirtual |
Get the strides for each dimension ordered from largest to smallest where the smallest value is the same as the size of a single element in the tensor.
Implements ITensorHandle.
Definition at line 105 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 55 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 56 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Import externally allocated memory.
memory | base address of the memory being imported. |
source | source of the allocation for the memory being imported. |
Reimplemented from ITensorHandle.
Definition at line 130 of file ClTensorHandle.hpp.
References ITensorHandle::CopyOutTo(), IClTensorHandle::GetDataType(), armnn::IgnoreUnused(), and ITensorHandle::Map().
|
inlineoverridevirtual |
Indicate to the memory manager that this resource is active.
This is used to compute overlapping lifetimes of resources.
Implements ITensorHandle.
Definition at line 71 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Map the tensor data for access.
blocking | hint to block the calling thread until all other accesses are complete. (backend dependent) |
Implements ITensorHandle.
Definition at line 85 of file ClTensorHandle.hpp.
|
inline |
Definition at line 125 of file ClTensorHandle.hpp.
|
inline |
Definition at line 115 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 100 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |