24.02.1
|
OpenCL Sub-Tensor handle interface object. More...
#include <CLSubTensorHandle.h>
Public Member Functions | |
CLSubTensorHandle (ITensorHandle *parent_handle, const TensorShape &shape, const Coordinates &coords, bool extend_parent=false) | |
Default constructor. More... | |
~CLSubTensorHandle ()=default | |
Destructor: free the tensor's memory. More... | |
CLSubTensorHandle (CLSubTensorHandle &&)=default | |
Allow instances of this class to be move constructed. More... | |
CLSubTensorHandle & | operator= (CLSubTensorHandle &&)=default |
Allow instances of this class to be moved. More... | |
CLSubTensorHandle (const CLSubTensorHandle &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLSubTensorHandle & | operator= (const CLSubTensorHandle &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
void | allocate () override |
Allocates backend memory for the handle. More... | |
void | free () override |
Allocates backend memory for the handle. More... | |
void | manage (IMemoryGroup *mg) override |
Set backend tensor to be managed by a memory group. More... | |
void | map (bool blocking) override |
Maps backend tensor object. More... | |
void | unmap () override |
Un-maps a backend tensor object. More... | |
void | release_if_unused () override |
Releases backend tensor if is marked as unused. More... | |
arm_compute::ITensor & | tensor () override |
Backend tensor object accessor. More... | |
const arm_compute::ITensor & | tensor () const override |
Backend tensor object const accessor. More... | |
ITensorHandle * | parent_handle () override |
Return the parent tensor handle if is a subtensor else this. More... | |
bool | is_subtensor () const override |
Checks if a backing tensor is a sub-tensor object or not. More... | |
Target | target () const override |
Returns target type. More... | |
Public Member Functions inherited from ITensorHandle | |
virtual | ~ITensorHandle ()=default |
Default virtual destructor. More... | |
OpenCL Sub-Tensor handle interface object.
Definition at line 37 of file CLSubTensorHandle.h.
CLSubTensorHandle | ( | ITensorHandle * | parent_handle, |
const TensorShape & | shape, | ||
const Coordinates & | coords, | ||
bool | extend_parent = false |
||
) |
Default constructor.
[in] | parent_handle | Parent tensor handle |
[in] | shape | Sub-Tensor shape |
[in] | coords | Starting coordinates |
[in] | extend_parent | Extends parent shape if true |
Definition at line 34 of file CLSubTensorHandle.cpp.
References ARM_COMPUTE_ERROR_ON, CLSubTensorHandle::parent_handle(), arm_compute::test::validation::shape, and ITensorHandle::tensor().
|
default |
Destructor: free the tensor's memory.
|
default |
Allow instances of this class to be move constructed.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Allocates backend memory for the handle.
Implements ITensorHandle.
Definition at line 46 of file CLSubTensorHandle.cpp.
|
overridevirtual |
Allocates backend memory for the handle.
Implements ITensorHandle.
Definition at line 51 of file CLSubTensorHandle.cpp.
|
overridevirtual |
Checks if a backing tensor is a sub-tensor object or not.
Implements ITensorHandle.
Definition at line 93 of file CLSubTensorHandle.cpp.
|
overridevirtual |
Set backend tensor to be managed by a memory group.
[in] | mg | Memory group |
Implements ITensorHandle.
Definition at line 56 of file CLSubTensorHandle.cpp.
References ARM_COMPUTE_UNUSED.
|
overridevirtual |
Maps backend tensor object.
[in] | blocking | Flags if the mapping operations should be blocking |
Implements ITensorHandle.
Definition at line 62 of file CLSubTensorHandle.cpp.
References CLSubTensor::map().
|
default |
Allow instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Return the parent tensor handle if is a subtensor else this.
Implements ITensorHandle.
Definition at line 87 of file CLSubTensorHandle.cpp.
References ARM_COMPUTE_ERROR_ON, and ITensorHandle::parent_handle().
Referenced by CLSubTensorHandle::CLSubTensorHandle().
|
overridevirtual |
Releases backend tensor if is marked as unused.
Implements ITensorHandle.
Definition at line 72 of file CLSubTensorHandle.cpp.
|
overridevirtual |
Returns target type.
Implements ITensorHandle.
Definition at line 98 of file CLSubTensorHandle.cpp.
References arm_compute::graph::CL.
|
overridevirtual |
Backend tensor object const accessor.
Implements ITensorHandle.
|
overridevirtual |
Backend tensor object accessor.
Implements ITensorHandle.
Definition at line 77 of file CLSubTensorHandle.cpp.
|
overridevirtual |
Un-maps a backend tensor object.
Implements ITensorHandle.
Definition at line 67 of file CLSubTensorHandle.cpp.
References CLSubTensor::unmap().