AIfES 2
2.0.0
|
A tensor in AIfES. More...
#include <aifes_math.h>
Data Fields | |
const aimath_dtype_t * | dtype |
The datatype of the tensor, e.g. More... | |
uint8_t | dim |
The number of dimensions. | |
uint16_t * | shape |
An array of dim elements with the shape of the tensor for example [2, 3]. | |
void * | tensor_params |
Parameters to describe some data properties (for example quantization parameters like zero_point and shift) defined by the dtype. | |
void * | data |
Pointer to the actual tensor data. | |
A tensor in AIfES.
This is the main structure to do the calculations with. It represets a tensor (a N-dimensional array) of data values of the given type.
For example the matrix
\[ \left( \begin{array}{rrr} 0 & 1 & 2 \\ 3 & 4 & 5 \end{array}\right) \]
can be created with
const aimath_dtype_t* dtype |
The datatype of the tensor, e.g.
aif32, aiq7, aiq31, aiu8