23.05
|
CPU Sub-Tensor handle interface object. More...
#include <NESubTensorHandle.h>
Public Member Functions | |
NESubTensorHandle (ITensorHandle *parent_handle, const TensorShape &shape, const Coordinates &coords, bool extend_parent=false) | |
Default constructor. More... | |
~NESubTensorHandle ()=default | |
Destructor: free the tensor's memory. More... | |
NESubTensorHandle (NESubTensorHandle &&)=default | |
Allow instances of this class to be move constructed. More... | |
NESubTensorHandle & | operator= (NESubTensorHandle &&)=default |
Allow instances of this class to be moved. More... | |
NESubTensorHandle (const NESubTensorHandle &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NESubTensorHandle & | operator= (const NESubTensorHandle &)=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... | |
![]() | |
virtual | ~ITensorHandle ()=default |
Default virtual destructor. More... | |
CPU Sub-Tensor handle interface object.
Definition at line 38 of file NESubTensorHandle.h.
NESubTensorHandle | ( | 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 32 of file NESubTensorHandle.cpp.
References ARM_COMPUTE_ERROR_ON, NESubTensorHandle::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 40 of file NESubTensorHandle.cpp.
|
overridevirtual |
Allocates backend memory for the handle.
Implements ITensorHandle.
Definition at line 45 of file NESubTensorHandle.cpp.
|
overridevirtual |
Checks if a backing tensor is a sub-tensor object or not.
Implements ITensorHandle.
Definition at line 87 of file NESubTensorHandle.cpp.
|
overridevirtual |
Set backend tensor to be managed by a memory group.
[in] | mg | Memory group |
Implements ITensorHandle.
Definition at line 50 of file NESubTensorHandle.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 56 of file NESubTensorHandle.cpp.
References ARM_COMPUTE_UNUSED.
|
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 81 of file NESubTensorHandle.cpp.
References ARM_COMPUTE_ERROR_ON, and ITensorHandle::parent_handle().
Referenced by NESubTensorHandle::NESubTensorHandle().
|
overridevirtual |
Releases backend tensor if is marked as unused.
Implements ITensorHandle.
Definition at line 66 of file NESubTensorHandle.cpp.
|
overridevirtual |
Returns target type.
Implements ITensorHandle.
Definition at line 92 of file NESubTensorHandle.cpp.
References arm_compute::graph::NEON.
|
overridevirtual |
Backend tensor object accessor.
Implements ITensorHandle.
Definition at line 76 of file NESubTensorHandle.cpp.
|
overridevirtual |
Backend tensor object const accessor.
Implements ITensorHandle.
Definition at line 71 of file NESubTensorHandle.cpp.
|
overridevirtual |
Un-maps a backend tensor object.
Implements ITensorHandle.
Definition at line 61 of file NESubTensorHandle.cpp.