23.08
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TENSOR_H
25 #define ARM_COMPUTE_TENSOR_H
35 class IRuntimeContext;
61 uint8_t *
buffer()
const override;
Interface of an object than can be memory managed.
Interface for CPU tensor.
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.
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.
Basic implementation of a CPU memory tensor allocator.
~Tensor()=default
Destructor: free the tensor's memory.
Copyright (c) 2017-2023 Arm Limited.
Tensor(IRuntimeContext *ctx=nullptr)
Constructor.
Store the tensor's metadata.
Basic implementation of the tensor interface.
Tensor & operator=(Tensor &&)=default
Allow instances of this class to be moved.