AIfES 2  2.0.0
aimath_dtype Struct Reference

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...
 

Detailed Description

Indicator for the used datatype.

This structure is used to indicate the type of variables like aitensors or aiscalars.

Field Documentation

◆ print_aiscalar

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)

Parameters
tensorThe scalar to print
*printThe print function to use (for example printf)

◆ print_aitensor

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)

Parameters
tensorThe tensor to print

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