23.11
|
NETensorHandle(const ITensorInfo &info)
Default Constructor.
virtual void manage(IMemoryManageable *obj)=0
Sets a object to be managed by the given memory group.
void init(const TensorAllocator &allocator, const Coordinates &coords, TensorInfo &sub_info)
Shares the same backing memory with another tensor allocator, while the tensor info might be differen...
void release_if_unused() override
Releases backend tensor if is marked as unused.
Target target() const override
Returns target type.
void manage(IMemoryGroup *mg) override
Set backend tensor to be managed by a memory group.
@ NEON
Arm® Neon™ capable target device.
Interface for CPU tensor.
bool is_subtensor() const override
Checks if a backing tensor is a sub-tensor object or not.
ITensorHandle * parent_handle() override
Return the parent tensor handle if is a subtensor else this.
TensorAllocator * allocator()
Return a pointer to the tensor's allocator.
void map(bool blocking) override
Maps backend tensor object.
void free() override
Allocates backend memory for the handle.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
arm_compute::ITensor & tensor() override
Backend tensor object accessor.
bool is_used() const
Flags if the tensor is used or not.
void allocate() override
Allocate size specified by TensorInfo of CPU memory.
Copyright (c) 2017-2023 Arm Limited.
void free() override
Free allocated CPU memory.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Tensor handle interface object.
void allocate() override
Allocates backend memory for the handle.
void unmap() override
Un-maps a backend tensor object.