24 #ifndef ARM_COMPUTE_IALLOCATOR_H 25 #define ARM_COMPUTE_IALLOCATOR_H 48 virtual void *
allocate(
size_t size,
size_t alignment) = 0;
50 virtual void free(
void *ptr) = 0;
58 virtual std::unique_ptr<IMemoryRegion>
make_region(
size_t size,
size_t alignment) = 0;
virtual ~IAllocator()=default
Default virtual destructor.
virtual void * allocate(size_t size, size_t alignment)=0
Interface to be implemented by the child class to allocate bytes.
Copyright (c) 2017-2021 Arm Limited.
virtual std::unique_ptr< IMemoryRegion > make_region(size_t size, size_t alignment)=0
Create self-managed memory region.
virtual void free(void *ptr)=0
Interface to be implemented by the child class to free the allocated tensor.