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