24 #ifndef __ARM_COMPUTE_ITENSOR_H__
25 #define __ARM_COMPUTE_ITENSOR_H__
55 virtual uint8_t *
buffer()
const = 0;
virtual size_t offset_element_in_bytes(const Coordinates &pos) const =0
The offset in bytes from the beginning of the memory allocation to access the element at position (x...
Store the tensor's metadata.
Interface for NEON tensor.
virtual ~ITensor()=default
Default virtual destructor.
uint8_t * ptr_to_element(const Coordinates &id) const
Return a pointer to the element at the passed coordinates.
virtual uint8_t * buffer() const =0
Interface to be implemented by the child class to return a pointer to CPU memory. ...
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
void copy_from(const ITensor &src)
Copy the content of another tensor.
void print(std::ostream &s, IOFormatInfo io_fmt=IOFormatInfo()) const
Print a tensor to a given stream using user defined formatting information.