24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_ITENSORALLOCATOR_H
25 #define ARM_COMPUTE_ITENSORALLOCATOR_H
92 virtual void free() = 0;
99 virtual uint8_t *lock() = 0;
101 virtual void unlock() = 0;
ITensorAllocator()=default
Default constructor.
void init(const TensorInfo &input, size_t alignment=0)
Initialize a tensor based on the passed TensorInfo.
virtual ~ITensorAllocator()=default
Default virtual destructor.
size_t alignment() const
Return underlying's tensor buffer alignment.
void soft_init(TensorInfo &input, size_t alignment=0)
Initialize a tensor based with a reference TensorInfo.
TensorInfo & info()
Return a reference to the tensor's metadata.
ITensorAllocator & operator=(const ITensorAllocator &)=default
Allow instances of this class to be copied.
virtual void free()=0
Interface to be implemented by the child class to free the allocated tensor.
Store the tensor's metadata.
Copyright (c) 2017-2024 Arm Limited.
virtual void allocate()=0
Interface to be implemented by the child class to allocate the tensor.
Interface to allocate tensors.