AIfES 2
2.0.0
|
Default implementation of the Mean Squared Error loss . More...
Go to the source code of this file.
Typedefs | |
typedef struct ailoss_mse | ailoss_mse_f32_t |
typedef struct ailoss_mse | ailoss_mse_q31_t |
typedef struct ailoss_mse | ailoss_mse_q7_t |
Functions | |
ailoss_t * | ailoss_mse_f32_default (ailoss_mse_f32_t *loss, ailayer_t *input_layer) |
Initializes and connect a Mean Squared Error loss with the F32 default implementation using a mean reduction. More... | |
ailoss_t * | ailoss_mse_sum_f32_default (ailoss_mse_q31_t *loss, ailayer_t *input_layer) |
Initializes and connect a Mean Squared Error loss with the F32 default implementation using a sum reduction. More... | |
ailoss_t * | ailoss_mse_mean_f32_default (ailoss_mse_q31_t *loss, ailayer_t *input_layer) |
Initializes and connect a Mean Squared Error loss with the F32 default implementation using a mean reduction. More... | |
ailoss_t * | ailoss_mse_q31_default (ailoss_mse_q31_t *loss, ailayer_t *input_layer) |
Initializes and connect a Mean Squared Error loss with the Q31 default implementation using a mean reduction. More... | |
ailoss_t * | ailoss_mse_sum_q31_default (ailoss_mse_q31_t *loss, ailayer_t *input_layer) |
Initializes and connect a Mean Squared Error loss with the Q31 default implementation using a sum reduction. More... | |
ailoss_t * | ailoss_mse_mean_q31_default (ailoss_mse_q31_t *loss, ailayer_t *input_layer) |
Initializes and connect a Mean Squared Error loss with the Q31 default implementation using a mean reduction. More... | |
Default implementation of the Mean Squared Error loss .
Hardware independent implementations of the Mean Squared Error loss in F32 and Q31 data-type. For more information about the Mean Squared Error loss refer to ailoss_mse.h.
ailoss_t* ailoss_mse_f32_default | ( | ailoss_mse_f32_t * | loss, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Mean Squared Error loss with the F32 default implementation using a mean reduction.
Example: Create the loss structure:
Example: Initialize and connect the loss to the layer structure:
*loss | The loss structure to initialize. |
*input_layer | The output layer of the model. |
ailoss_t* ailoss_mse_mean_f32_default | ( | ailoss_mse_q31_t * | loss, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Mean Squared Error loss with the F32 default implementation using a mean reduction.
Example: Create the loss structure:
Example: Initialize and connect the loss to the layer structure:
*loss | The loss structure to initialize. |
*input_layer | The output layer of the model. |
ailoss_t* ailoss_mse_mean_q31_default | ( | ailoss_mse_q31_t * | loss, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Mean Squared Error loss with the Q31 default implementation using a mean reduction.
Example: Create the loss structure:
Example: Initialize and connect the loss to the layer structure:
*loss | The loss structure to initialize. |
*input_layer | The output layer of the model. |
ailoss_t* ailoss_mse_q31_default | ( | ailoss_mse_q31_t * | loss, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Mean Squared Error loss with the Q31 default implementation using a mean reduction.
Example: Create the loss structure:
Example: Initialize and connect the loss to the layer structure:
*loss | The loss structure to initialize. |
*input_layer | The output layer of the model. |
ailoss_t* ailoss_mse_sum_f32_default | ( | ailoss_mse_q31_t * | loss, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Mean Squared Error loss with the F32 default implementation using a sum reduction.
Example: Create the loss structure:
Example: Initialize and connect the loss to the layer structure:
*loss | The loss structure to initialize. |
*input_layer | The output layer of the model. |
ailoss_t* ailoss_mse_sum_q31_default | ( | ailoss_mse_q31_t * | loss, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Mean Squared Error loss with the Q31 default implementation using a sum reduction.
Example: Create the loss structure:
Example: Initialize and connect the loss to the layer structure:
*loss | The loss structure to initialize. |
*input_layer | The output layer of the model. |