23.08
|
Go to the documentation of this file.
33 : _sub_tensor(), _parent_handle(nullptr)
void unmap() override
Un-maps a backend tensor object.
void free() override
Allocates backend memory for the handle.
@ NEON
Arm® Neon™ capable target device.
void allocate() override
Allocates backend memory for the handle.
Basic implementation of the sub-tensor interface.
virtual arm_compute::ITensor & tensor()=0
Backend tensor object accessor.
Interface for CPU tensor.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
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.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
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.
Copyright (c) 2017-2023 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.
virtual ITensorHandle * parent_handle()=0
Return the parent tensor handle if is a subtensor else this.