24.02.1
|
CPU Tensor handle interface object. More...
#include <NETensorHandle.h>
Public Member Functions | |
NETensorHandle (const ITensorInfo &info) | |
Default Constructor. More... | |
~NETensorHandle ()=default | |
Destructor: free the tensor's memory. More... | |
NETensorHandle (NETensorHandle &&)=default | |
Allow instances of this class to be move constructed. More... | |
NETensorHandle & | operator= (NETensorHandle &&)=default |
Allow instances of this class to be moved. 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... | |
CPU Tensor handle interface object.
Definition at line 37 of file NETensorHandle.h.
NETensorHandle | ( | const ITensorInfo & | info | ) |
Default Constructor.
[in] | info | Tensor metadata |
Definition at line 36 of file NETensorHandle.cpp.
References Tensor::allocator(), arm_compute::test::validation::info, and TensorAllocator::init().
|
default |
Destructor: free the tensor's memory.
|
default |
Allow instances of this class to be move constructed.
|
overridevirtual |
Allocates backend memory for the handle.
Implements ITensorHandle.
Definition at line 41 of file NETensorHandle.cpp.
References TensorAllocator::allocate(), and Tensor::allocator().
|
overridevirtual |
Allocates backend memory for the handle.
Implements ITensorHandle.
Definition at line 46 of file NETensorHandle.cpp.
References Tensor::allocator(), and TensorAllocator::free().
|
overridevirtual |
Checks if a backing tensor is a sub-tensor object or not.
Implements ITensorHandle.
Definition at line 92 of file NETensorHandle.cpp.
|
overridevirtual |
Set backend tensor to be managed by a memory group.
[in] | mg | Memory group |
Implements ITensorHandle.
Definition at line 51 of file NETensorHandle.cpp.
References IMemoryGroup::manage().
|
overridevirtual |
Maps backend tensor object.
[in] | blocking | Flags if the mapping operations should be blocking |
Implements ITensorHandle.
Definition at line 59 of file NETensorHandle.cpp.
References ARM_COMPUTE_UNUSED.
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Return the parent tensor handle if is a subtensor else this.
Implements ITensorHandle.
Definition at line 87 of file NETensorHandle.cpp.
|
overridevirtual |
Releases backend tensor if is marked as unused.
Implements ITensorHandle.
Definition at line 68 of file NETensorHandle.cpp.
References Tensor::allocator(), TensorAllocator::free(), and ITensor::is_used().
|
overridevirtual |
Returns target type.
Implements ITensorHandle.
Definition at line 97 of file NETensorHandle.cpp.
References arm_compute::graph::NEON.
|
overridevirtual |
Backend tensor object const accessor.
Implements ITensorHandle.
|
overridevirtual |
Backend tensor object accessor.
Implements ITensorHandle.
Definition at line 77 of file NETensorHandle.cpp.
|
overridevirtual |
Un-maps a backend tensor object.
Implements ITensorHandle.
Definition at line 64 of file NETensorHandle.cpp.