24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TENSORALLOCATOR_H
25 #define ARM_COMPUTE_TENSORALLOCATOR_H
78 uint8_t *
data()
const;
118 uint8_t *lock()
override;
121 void unlock()
override;
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...
~TensorAllocator()
Default destructor.
Interface of an object than can be memory managed.
void init(const TensorInfo &input, size_t alignment=0)
Initialize a tensor based on the passed TensorInfo.
CPU implementation of memory object.
TensorAllocator(IMemoryManageable *owner)
Default constructor.
uint8_t * data() const
Returns the pointer to the allocated data.
void set_associated_memory_group(IMemoryGroup *associated_memory_group)
Associates the tensor with a memory group.
Basic implementation of a CPU memory tensor allocator.
Store the tensor's metadata.
void allocate() override
Allocate size specified by TensorInfo of CPU memory.
Copyright (c) 2017-2024 Arm Limited.
void free() override
Free allocated CPU memory.
Status import_memory(void *memory)
Import an existing memory as a tensor's backing memory.
Interface to allocate tensors.
TensorAllocator & operator=(const TensorAllocator &)=delete
Prevent instances of this class from being copy assigned (As this class contains pointers)
input allocator() -> allocate()