| AIfES 2 2.0.0

aifes_express_q7_fnn.h
Go to the documentation of this file.
1
26 #ifndef EXPRESS_FNN_Q7
27 #define EXPRESS_FNN_Q7
28
29 #include "basic/express/aifes_express_f32_fnn.h"
30
39 uint32_t AIFES_E_flat_weights_number_fnn_q7(uint32_t *fnn_structure, uint32_t layer_count);
40
41
91 int8_t AIFES_E_quantisation_fnn_f32_to_q7(aitensor_t *representative_f32_dataset,
92 AIFES_E_model_parameter_fnn_f32 *AIFES_E_fnn,
93 uint8_t *q7_parameter_dataset);
94
95
163 int8_t AIFES_E_inference_fnn_q7(aitensor_t *input_tensor,
164 AIFES_E_model_parameter_fnn_f32 *AIFES_E_fnn,
165 aitensor_t *output_tensor);
166
167 #endif // EXPRESS_FNN_Q7
aifes_express_f32_fnn.h
AIfES Express functions for weights with F32 (float32) data type.
AIFES_E_quantisation_fnn_f32_to_q7
int8_t AIFES_E_quantisation_fnn_f32_to_q7(aitensor_t *representative_f32_dataset, AIFES_E_model_parameter_fnn_f32 *AIFES_E_fnn, uint8_t *q7_parameter_dataset)
Quantizes the weights of an F32 FNN into a Q7 FNN.
AIFES_E_inference_fnn_q7
int8_t AIFES_E_inference_fnn_q7(aitensor_t *input_tensor, AIFES_E_model_parameter_fnn_f32 *AIFES_E_fnn, aitensor_t *output_tensor)
Executes the inference of a Q7 FNN.
AIFES_E_flat_weights_number_fnn_q7
uint32_t AIFES_E_flat_weights_number_fnn_q7(uint32_t *fnn_structure, uint32_t layer_count)
Calculates the required length of the uint8_t array for the FNN.
AIFES_E_model_parameter_fnn_f32
Parameters for the FNN model.
Definition: aifes_express_f32_fnn.h:107
aitensor
A tensor in AIfES.
Definition: aifes_math.h:89