![]() |
AIfES 2
2.0.0
|
Indicator for the used datatype. More...
#include <aifes_math.h>
Data Fields | |
| const char * | name |
| Name of the data type (for example "F32") | |
| uint32_t | size |
| The size of one data value of this type in bytes. | |
| uint32_t | tensor_params_size |
| Size of the tensor params (for example for quantization parameters) of this type in bytes. | |
| void(* | print_aitensor )(const aitensor_t *tensor) |
| Set a function to print the given tensor for debugging purposes. More... | |
| void(* | print_aiscalar )(const void *scalar) |
| Set a function to print the given scalar for debugging purposes. More... | |
Indicator for the used datatype.
This structure is used to indicate the type of variables like aitensors or aiscalars.
| void(* print_aiscalar) (const void *scalar) |
Set a function to print the given scalar for debugging purposes.
This function should only be set in the debug mode when prints are required (to save memory otherwise)
| tensor | The scalar to print |
| The print function to use (for example printf) |
| void(* print_aitensor) (const aitensor_t *tensor) |
Set a function to print the given tensor for debugging purposes.
This function should only be set in the debug mode when prints are required (to save memory otherwise)
| tensor | The tensor to print |