ArmNN
 24.02
Tensor Class Reference

A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. More...

#include <Tensor.hpp>

Inheritance diagram for Tensor:
[legend]
Collaboration diagram for Tensor:
[legend]

Additional Inherited Members

- Public Member Functions inherited from BaseTensor< void * >
 BaseTensor ()
 Empty (invalid) constructor. More...
 
 BaseTensor (const TensorInfo &info, void * memoryArea)
 Constructor from a raw memory pointer. More...
 
 BaseTensor (const BaseTensor &other)
 Tensors are copyable. More...
 
BaseTensoroperator= (const BaseTensor &)
 Tensors are copyable. More...
 
const TensorInfoGetInfo () const
 
TensorInfoGetInfo ()
 
const TensorShapeGetShape () const
 
TensorShapeGetShape ()
 
DataType GetDataType () const
 
unsigned int GetNumDimensions () const
 
unsigned int GetNumBytes () const
 
unsigned int GetNumElements () const
 
void * GetMemoryArea () const
 
- Protected Member Functions inherited from BaseTensor< void * >
 ~BaseTensor ()
 Protected destructor to stop users from making these (could still new one on the heap and then leak it...) More...
 
- Protected Attributes inherited from BaseTensor< void * >
void * m_MemoryArea
 

Detailed Description

A tensor defined by a TensorInfo (shape and data type) and a mutable backing store.

Examples
AsyncExecutionSample.cpp, CustomMemoryAllocatorSample.cpp, DynamicSample.cpp, and SimpleSample.cpp.

Definition at line 321 of file Tensor.hpp.


The documentation for this class was generated from the following file: