24.02.1
|
Go to the documentation of this file.
34 return &_allocator.
info();
39 return &_allocator.
info();
44 return _allocator.
data();
TensorInfo & info()
Return a reference to the tensor's metadata.
TensorAllocator * allocator()
Return a pointer to the tensor's allocator.
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory.
uint8_t * data() const
Returns the pointer to the allocated data.
void associate_memory_group(IMemoryGroup *memory_group) override
Associates a memory managable object with the memory group that manages it.
ITensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
void set_associated_memory_group(IMemoryGroup *associated_memory_group)
Associates the tensor with a memory group.
Basic implementation of a CPU memory tensor allocator.
Copyright (c) 2017-2024 Arm Limited.
Tensor(IRuntimeContext *ctx=nullptr)
Constructor.
Store the tensor's metadata.