23.08
|
Tensor handle interface object. More...
#include <ITensorHandle.h>
Public Member Functions | |
virtual | ~ITensorHandle ()=default |
Default virtual destructor. More... | |
virtual void | allocate ()=0 |
Allocates backend memory for the handle. More... | |
virtual void | free ()=0 |
Allocates backend memory for the handle. More... | |
virtual void | manage (IMemoryGroup *mg)=0 |
Set backend tensor to be managed by a memory group. More... | |
virtual void | map (bool blocking)=0 |
Maps backend tensor object. More... | |
virtual void | unmap ()=0 |
Un-maps a backend tensor object. More... | |
virtual void | release_if_unused ()=0 |
Releases backend tensor if is marked as unused. More... | |
virtual arm_compute::ITensor & | tensor ()=0 |
Backend tensor object accessor. More... | |
virtual const arm_compute::ITensor & | tensor () const =0 |
Backend tensor object const accessor. More... | |
virtual ITensorHandle * | parent_handle ()=0 |
Return the parent tensor handle if is a subtensor else this. More... | |
virtual bool | is_subtensor () const =0 |
Checks if a backing tensor is a sub-tensor object or not. More... | |
virtual Target | target () const =0 |
Returns target type. More... | |
Tensor handle interface object.
Definition at line 38 of file ITensorHandle.h.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Allocates backend memory for the handle.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
|
pure virtual |
Allocates backend memory for the handle.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
|
pure virtual |
Checks if a backing tensor is a sub-tensor object or not.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
|
pure virtual |
Set backend tensor to be managed by a memory group.
[in] | mg | Memory group |
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
|
pure virtual |
Maps backend tensor object.
[in] | blocking | Flags if the mapping operations should be blocking |
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
|
pure virtual |
Return the parent tensor handle if is a subtensor else this.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
Referenced by CLSubTensorHandle::parent_handle(), and NESubTensorHandle::parent_handle().
|
pure virtual |
Releases backend tensor if is marked as unused.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
|
pure virtual |
Returns target type.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
|
pure virtual |
Backend tensor object const accessor.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
|
pure virtual |
Backend tensor object accessor.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.
Referenced by CLSubTensorHandle::CLSubTensorHandle(), arm_compute::graph::backends::detail::get_backing_tensor(), and NESubTensorHandle::NESubTensorHandle().
|
pure virtual |
Un-maps a backend tensor object.
Implemented in CLSubTensorHandle, NESubTensorHandle, CLTensorHandle, and NETensorHandle.