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