24.02
|
Go to the documentation of this file.
30 virtual void*
allocate(
size_t size,
size_t alignment) = 0;
33 virtual void free(
void* ptr) = 0;
52 "ICustomerAllocator::GetMemoryRegionAtOffset(): This function should be overridden in subclass.");
virtual void * GetMemoryRegionAtOffset(void *buffer, size_t offset, size_t alignment=0)
Interface that may be implemented to allow retrieval of Memory Region from allocated buffer at a cert...
virtual void free(void *ptr)=0
Interface to be implemented by the child class to free the allocated bytes.
Custom Allocator interface.
virtual void * allocate(size_t size, size_t alignment)=0
Interface to be implemented by the child class to allocate bytes.
virtual ~ICustomAllocator()=default
Default virtual destructor.
Base class for all ArmNN exceptions so that users can filter to just those.
void IgnoreUnused(Ts &&...)
MemorySource
Define the Memory Source to reduce copies.
Copyright (c) 2021 ARM Limited and Contributors.
virtual armnn::MemorySource GetMemorySourceType()=0
Used to specify what type of memory is being allocated by this allocator.