24.02
|
#include <ClTensorHandle.hpp>
Public Member Functions | |
ClTensorHandleDecorator (IClTensorHandle *parent, const TensorInfo &info) | |
arm_compute::ICLTensor & | GetTensor () override |
arm_compute::ICLTensor 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 > &) 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... | |
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... | |
virtual unsigned int | GetImportFlags () const |
Get flags describing supported import sources. More... | |
virtual bool | Import (void *memory, MemorySource source) |
Import externally allocated memory. More... | |
virtual bool | CanBeImported (void *memory, MemorySource source) |
Implementations must determine if this memory block can be imported. More... | |
virtual void | Unimport () |
Unimport externally allocated memory. More... | |
virtual std::shared_ptr< ITensorHandle > | DecorateTensorHandle (const TensorInfo &tensorInfo) |
Returns a decorated version of this TensorHandle allowing us to override the TensorInfo for it. More... | |
Definition at line 410 of file ClTensorHandle.hpp.
|
inline |
Definition at line 413 of file ClTensorHandle.hpp.
References armnn::info.
|
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 422 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 438 of file ClTensorHandle.hpp.
References ClTensorDecorator::info().
|
inlineoverridevirtual |
Get the parent tensor if this is a subtensor.
Implements ITensorHandle.
Definition at line 436 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 450 of file ClTensorHandle.hpp.
|
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 445 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 420 of file ClTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 419 of file ClTensorHandle.hpp.
|
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 423 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 425 of file ClTensorHandle.hpp.
References ClTensorDecorator::info(), and ClTensorDecorator::map().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Unmap the tensor data.
Implements ITensorHandle.
Definition at line 431 of file ClTensorHandle.hpp.
References ClTensorDecorator::unmap().