| AIfES 2 2.0.0

ailayer_softmax_default.h
Go to the documentation of this file.
1
26 #ifndef AILAYER_SOFTMAX_DEFAULT
27 #define AILAYER_SOFTMAX_DEFAULT
28
29 #include "basic/base/ailayer/ailayer_softmax.h"
30
31 #include "basic/default/aimath/aimath_f32_default.h"
32 #include "basic/default/aimath/aimath_q31_default.h"
33 #include "basic/default/aimath/aimath_q7_default.h"
34
35 #define AILAYER_SOFTMAX_F32_M() {{0,}}
36 #define AILAYER_SOFTMAX_F32_A() {{0,}}
37 #define AILAYER_SOFTMAX_Q31_M() {{0,}}
38 #define AILAYER_SOFTMAX_Q31_A() {{0,}}
39 #define AILAYER_SOFTMAX_Q7_M() {{0,}}
40 #define AILAYER_SOFTMAX_Q7_A() {{0,}}
41
42 typedef struct ailayer_softmax ailayer_softmax_f32_t;
43 typedef struct ailayer_softmax ailayer_softmax_q31_t;
44 typedef struct ailayer_softmax ailayer_softmax_q7_t;
45
66 ailayer_t *ailayer_softmax_f32_default(ailayer_softmax_f32_t *layer, ailayer_t *input_layer);
67
91 ailayer_t *ailayer_softmax_q31_default(ailayer_softmax_q31_t *layer, ailayer_t *input_layer);
92
116 ailayer_t *ailayer_softmax_q7_default(ailayer_softmax_q7_t *layer, ailayer_t *input_layer);
117
126 void ailayer_softmax_calc_result_tensor_params_q31_default(ailayer_t *self);
127
136 void ailayer_softmax_calc_result_tensor_params_q7_default(ailayer_t *self);
137
138 #endif // AILAYER_SOFTMAX_DEFAULT
ailayer_softmax.h
Base layer implementation of the Softmax activation layer.
ailayer_softmax_f32_default
ailayer_t * ailayer_softmax_f32_default(ailayer_softmax_f32_t *layer, ailayer_t *input_layer)
Initializes and connect an Softmax layer with the F32 default implementation.
ailayer_softmax_q7_default
ailayer_t * ailayer_softmax_q7_default(ailayer_softmax_q7_t *layer, ailayer_t *input_layer)
Initializes and connects an Softmax layer with the Q7 default implementation.
ailayer_softmax_calc_result_tensor_params_q31_default
void ailayer_softmax_calc_result_tensor_params_q31_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the softmax Q31 default imple...
ailayer_softmax_q31_default
ailayer_t * ailayer_softmax_q31_default(ailayer_softmax_q31_t *layer, ailayer_t *input_layer)
Initializes and connects an Softmax layer with the Q31 default implementation.
ailayer_softmax_calc_result_tensor_params_q7_default
void ailayer_softmax_calc_result_tensor_params_q7_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the softmax Q7 default implem...
aimath_f32_default.h
Math functions for F32 data type, default implementation.
aimath_q31_default.h
Math functions for Q31 data type, default implementation.
aimath_q7_default.h
Math functions for Q7 data type, default implementation.
ailayer_softmax
General Softmax layer struct.
Definition: ailayer_softmax.h:51
ailayer
AIfES layer interface.
Definition: aifes_core.h:252