24.02.1
|
Basic implementation of the tensor interface. More...
#include <OperatorTensor.h>
Public Member Functions | |
OperatorTensor (ITensorInfo *info, IMemory *memory) | |
Constructor. More... | |
~OperatorTensor ()=default | |
Destructor: free the tensor's memory. More... | |
OperatorTensor (OperatorTensor &&)=default | |
Allow instances of this class to be move constructed. More... | |
OperatorTensor & | operator= (OperatorTensor &&)=default |
Allow instances of this class to be moved. More... | |
OperatorTensor & | operator= (const OperatorTensor &)=delete |
Prevent instances of this class to be copy assigned. More... | |
OperatorTensor (const OperatorTensor &)=delete | |
Prevent instances of this class to be copy constructed. More... | |
arm_compute::ITensorInfo * | info () const override |
Interface to be implemented by the child class to return the tensor's metadata. More... | |
arm_compute::ITensorInfo * | 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... | |
Public Member Functions inherited from ITensor | |
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... | |
bool | is_used () const |
Flags if the tensor is used or not. More... | |
void | mark_as_unused () const |
Marks a tensor as unused. More... | |
void | mark_as_used () const |
Marks a tensor as used. More... | |
Basic implementation of the tensor interface.
Definition at line 42 of file OperatorTensor.h.
OperatorTensor | ( | ITensorInfo * | info, |
IMemory * | memory | ||
) |
Constructor.
[in] | info | Pointer to the tensor info. |
[in] | memory | Pointer to the memory info. |
Definition at line 34 of file OperatorTensor.cpp.
|
default |
Destructor: free the tensor's memory.
|
default |
Allow instances of this class to be move constructed.
|
delete |
Prevent instances of this class to be copy constructed.
|
overridevirtual |
Interface to be implemented by the child class to return a pointer to CPU memory.
Implements ITensor.
Definition at line 49 of file OperatorTensor.cpp.
References ARM_COMPUTE_ERROR, arm_compute::experimental::CPU, and IMemory::region().
|
overridevirtual |
Interface to be implemented by the child class to return the tensor's metadata.
Implements ITensor.
Definition at line 39 of file OperatorTensor.cpp.
|
overridevirtual |
Interface to be implemented by the child class to return the tensor's metadata.
Implements ITensor.
|
delete |
Prevent instances of this class to be copy assigned.
|
default |
Allow instances of this class to be moved.