|
25.11
|
#include <IClTensorHandle.hpp>
Public Member Functions | |
| virtual arm_compute::ICLTensor & | GetTensor ()=0 |
| virtual arm_compute::ICLTensor const & | GetTensor () const =0 |
| virtual arm_compute::DataType | GetDataType () const =0 |
| virtual void | SetMemoryGroup (const std::shared_ptr< arm_compute::IMemoryGroup > &memoryGroup)=0 |
| Public Member Functions inherited from ITensorHandle | |
| virtual | ~ITensorHandle () |
| virtual void | Manage ()=0 |
| Indicate to the memory manager that this resource is active. | |
| virtual void | Allocate ()=0 |
| Indicate to the memory manager that this resource is no longer active. | |
| virtual ITensorHandle * | GetParent () const =0 |
| Get the parent tensor if this is a subtensor. | |
| virtual const void * | Map (bool blocking=true) const =0 |
| Map the tensor data for access. | |
| virtual void | Unmap () const =0 |
| Unmap the tensor data. | |
| void * | Map (bool blocking=true) |
| Map the tensor data for access. | |
| void | Unmap () |
| Unmap the tensor data that was previously mapped with call to Map(). | |
| virtual TensorShape | GetStrides () const =0 |
| 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. | |
| virtual TensorShape | GetShape () const =0 |
| Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension. | |
| virtual void | CopyOutTo (void *memory) const =0 |
| Testing support to be able to verify and set tensor data content. | |
| virtual void | CopyInFrom (const void *memory)=0 |
| virtual unsigned int | GetImportFlags () const |
| Get flags describing supported import sources. | |
| virtual bool | Import (void *memory, MemorySource source) |
| Import externally allocated memory. | |
| virtual bool | CanBeImported (void *memory, MemorySource source) |
| Implementations must determine if this memory block can be imported. | |
| virtual void | Unimport () |
| Unimport externally allocated memory. | |
| virtual std::shared_ptr< ITensorHandle > | DecorateTensorHandle (const TensorInfo &tensorInfo) |
| Returns a decorated version of this TensorHandle allowing us to override the TensorInfo for it. | |
Definition at line 13 of file IClTensorHandle.hpp.
|
pure virtual |
Implements IAclTensorHandle.
Implemented in ClImportSubTensorHandle, ClImportTensorHandle, ClSubTensorHandle, ClTensorHandle, and ClTensorHandleDecorator.
|
pure virtual |
Implements IAclTensorHandle.
Implemented in ClImportSubTensorHandle, ClImportTensorHandle, ClSubTensorHandle, ClTensorHandle, and ClTensorHandleDecorator.
|
pure virtual |
Implements IAclTensorHandle.
Implemented in ClImportSubTensorHandle, ClImportTensorHandle, ClSubTensorHandle, ClTensorHandle, and ClTensorHandleDecorator.
Referenced by ClAdditionWorkload::ClAdditionWorkload(), ClConvertFp16ToFp32Workload::ClConvertFp16ToFp32Workload(), ClConvertFp32ToFp16Workload::ClConvertFp32ToFp16Workload(), ClDivisionWorkload::ClDivisionWorkload(), ClElementwiseBinaryWorkload::ClElementwiseBinaryWorkload(), ClFloorFloatWorkload::ClFloorFloatWorkload(), ClGatherNdWorkload::ClGatherNdWorkload(), ClMaximumWorkload::ClMaximumWorkload(), ClMinimumWorkload::ClMinimumWorkload(), ClMultiplicationWorkload::ClMultiplicationWorkload(), ClPreluWorkload::ClPreluWorkload(), ClQuantizeWorkload::ClQuantizeWorkload(), ClReshapeWorkload::ClReshapeWorkload(), ClReverseV2Workload::ClReverseV2Workload(), and ClSubtractionWorkload::ClSubtractionWorkload().
|
pure virtual |
Implements IAclTensorHandle.
Implemented in ClImportSubTensorHandle, ClImportTensorHandle, ClSubTensorHandle, ClTensorHandle, and ClTensorHandleDecorator.