24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_GRAPH_NESUBTENSORHANDLE_H
25 #define ARM_COMPUTE_GRAPH_NESUBTENSORHANDLE_H
50 bool extend_parent =
false);
66 void map(
bool blocking)
override;
67 void unmap()
override;
void unmap() override
Un-maps a backend tensor object.
void free() override
Allocates backend memory for the handle.
CPU Sub-Tensor handle interface object.
void allocate() override
Allocates backend memory for the handle.
Basic implementation of the sub-tensor interface.
Interface for CPU tensor.
bool is_subtensor() const override
Checks if a backing tensor is a sub-tensor object or not.
Target target() const override
Returns target type.
ITensorHandle * parent_handle() override
Return the parent tensor handle if is a subtensor else this.
arm_compute::ITensor & tensor() override
Backend tensor object accessor.
NESubTensorHandle(ITensorHandle *parent_handle, const TensorShape &shape, const Coordinates &coords, bool extend_parent=false)
Default constructor.
void map(bool blocking) override
Maps backend tensor object.
~NESubTensorHandle()=default
Destructor: free the tensor's memory.
Copyright (c) 2017-2024 Arm Limited.
void release_if_unused() override
Releases backend tensor if is marked as unused.
void manage(IMemoryGroup *mg) override
Set backend tensor to be managed by a memory group.
Tensor handle interface object.
NESubTensorHandle & operator=(NESubTensorHandle &&)=default
Allow instances of this class to be moved.