| AIfES 2 2.0.0

ailoss_crossentropy_default.h
Go to the documentation of this file.
1
26 #ifndef AILOSS_CROSSENTROPY_DEFAULT
27 #define AILOSS_CROSSENTROPY_DEFAULT
28
29 #include "basic/base/ailoss/ailoss_crossentropy.h"
30
31 #include "basic/default/aimath/aimath_f32_default.h"
32 #include "basic/default/aimath/aimath_q7_default.h"
33
34 typedef struct ailoss_crossentropy ailoss_crossentropy_f32_t;
35
68 ailoss_t *ailoss_crossentropy_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer);
69
103 ailoss_t *ailoss_crossentropy_sum_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer);
136 ailoss_t *ailoss_crossentropy_mean_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer);
137
178 ailoss_t *ailoss_crossentropy_sparse8_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer);
179
220 ailoss_t *ailoss_crossentropy_sum_sparse8_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer);
221
262 ailoss_t *ailoss_crossentropy_mean_sparse8_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer);
263
264 #endif // AILOSS_CROSSENTROPY_DEFAULT
265
ailoss_crossentropy.h
Base loss implementation of the Cross-Entropy loss.
ailoss_crossentropy_sparse8_f32_default
ailoss_t * ailoss_crossentropy_sparse8_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer)
Initializes and connect a Cross-Entropy loss with the F32 default implementation for sparse labels ...
ailoss_crossentropy_sum_f32_default
ailoss_t * ailoss_crossentropy_sum_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer)
Initializes and connect a Cross-Entropy loss with the F32 default implementation using a sum reduct...
ailoss_crossentropy_sum_sparse8_f32_default
ailoss_t * ailoss_crossentropy_sum_sparse8_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer)
Initializes and connect a Cross-Entropy loss with the F32 default implementation for sparse labels ...
ailoss_crossentropy_mean_sparse8_f32_default
ailoss_t * ailoss_crossentropy_mean_sparse8_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer)
Initializes and connect a Cross-Entropy loss with the F32 default implementation for sparse labels ...
ailoss_crossentropy_mean_f32_default
ailoss_t * ailoss_crossentropy_mean_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer)
Initializes and connect a Cross-Entropy loss with the F32 default implementation using a mean reduc...
ailoss_crossentropy_f32_default
ailoss_t * ailoss_crossentropy_f32_default(ailoss_crossentropy_f32_t *loss, ailayer_t *input_layer)
Initializes and connect a Cross-Entropy loss with the F32 default implementation using a mean reduc...
aimath_f32_default.h
Math functions for F32 data type, default implementation.
aimath_q7_default.h
Math functions for Q7 data type, default implementation.
ailayer
AIfES layer interface.
Definition: aifes_core.h:252
ailoss_crossentropy
General Cross-Entropy loss struct.
Definition: ailoss_crossentropy.h:62
ailoss
AIfES loss interface.
Definition: aifes_core.h:385