ARM Compute Library
17.05
|
Basic implementation of the tensor interface. More...
#include <Tensor.h>
Public Member Functions | |
Tensor () | |
Constructor. More... | |
~Tensor ()=default | |
Destructor: free the tensor's memory. More... | |
Tensor (Tensor &&)=default | |
Allow instances of this class to be move constructed. More... | |
Tensor & | operator= (Tensor &&)=default |
Allow instances of this class to be moved. More... | |
TensorAllocator * | allocator () |
Return a pointer to the tensor's allocator. More... | |
TensorInfo * | info () const override |
Interface to be implemented by the child class to return the tensor's metadata. More... | |
TensorInfo * | info () override |
Interface to be implemented by the child class to return the tensor's metadata. More... | |
uint8_t * | buffer () const override |
Interface to be implemented by the child class to return a pointer to CPU memory. More... | |
![]() | |
virtual | ~ITensor ()=default |
Default virtual destructor. More... | |
uint8_t * | ptr_to_element (const Coordinates &id) const |
Return a pointer to the element at the passed coordinates. More... | |
void | copy_from (const ITensor &src) |
Copy the content of another tensor. More... | |
void | print (std::ostream &s, IOFormatInfo io_fmt=IOFormatInfo()) const |
Print a tensor to a given stream using user defined formatting information. More... | |
Tensor | ( | ) |
Constructor.
|
default |
Destructor: free the tensor's memory.
TensorAllocator* allocator | ( | ) |
Return a pointer to the tensor's allocator.
Referenced by main_neon_copy_objects().
|
overridevirtual |
Interface to be implemented by the child class to return a pointer to CPU memory.
Implements ITensor.
|
overridevirtual |
Interface to be implemented by the child class to return the tensor's metadata.
Implements ITensor.
Referenced by main_neon_copy_objects().
|
overridevirtual |
Interface to be implemented by the child class to return the tensor's metadata.
Implements ITensor.