36#include "aifes_config.h"
Indicator for the used datatype.
Definition: aifes_math.h:47
uint32_t tensor_params_size
Size of the tensor params (for example for quantization parameters) of this type in bytes.
Definition: aifes_math.h:50
void(* print_aiscalar)(const void *scalar)
Set a function to print the given scalar for debugging purposes.
Definition: aifes_math.h:67
void(* print_aitensor)(const aitensor_t *tensor)
Set a function to print the given tensor for debugging purposes.
Definition: aifes_math.h:58
const char * name
Name of the data type (for example "F32")
Definition: aifes_math.h:48
uint32_t size
The size of one data value of this type in bytes.
Definition: aifes_math.h:49
A tensor in AIfES.
Definition: aifes_math.h:92
uint16_t * shape
An array of dim elements with the shape of the tensor for example [2, 3].
Definition: aifes_math.h:95
void * data
Pointer to the actual tensor data.
Definition: aifes_math.h:97
void * tensor_params
Parameters to describe some data properties (for example quantization parameters like zero_point and ...
Definition: aifes_math.h:96
const aimath_dtype_t * dtype
The datatype of the tensor, e.g.
Definition: aifes_math.h:93
uint8_t dim
The number of dimensions.
Definition: aifes_math.h:94