35 : _sub_tensor(), _parent_handle(nullptr)
38 auto parent_tensor = arm_compute::utils::cast::polymorphic_downcast<ICLTensor *>(&parent_handle->
tensor());
61 _sub_tensor.
map(blocking);
arm_compute::ITensor & tensor() override
Backend tensor object accessor.
void map(bool blocking) override
Maps backend tensor object.
CLSubTensorHandle(ITensorHandle *parent_handle, const TensorShape &shape, const Coordinates &coords, bool extend_parent=false)
Default constructor.
void free() override
Allocates backend memory for the handle.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
virtual ITensorHandle * parent_handle()=0
Return the parent tensor handle if is a subtensor else this.
virtual arm_compute::ITensor & tensor()=0
Backend tensor object accessor.
void manage(IMemoryGroup *mg) override
Set backend tensor to be managed by a memory group.
void allocate() override
Allocates backend memory for the handle.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
void release_if_unused() override
Releases backend tensor if is marked as unused.
Interface for CPU tensor.
Copyright (c) 2017-2023 Arm Limited.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
Tensor handle interface object.
void unmap() override
Un-maps a backend tensor object.
bool is_subtensor() const override
Checks if a backing tensor is a sub-tensor object or not.
Basic implementation of the OpenCL sub-tensor interface.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
Target target() const override
Returns target type.
ITensorHandle * parent_handle() override
Return the parent tensor handle if is a subtensor else this.
OpenCL capable target device.