| AIfES 2 2.0.0

ailayer_softsign_default.h
Go to the documentation of this file.
1
28 #ifndef AILAYER_SOFTSIGN_DEFAULT
29 #define AILAYER_SOFTSIGN_DEFAULT
30
31 #include "basic/base/ailayer/ailayer_softsign.h"
32
33 #include "basic/default/aimath/aimath_f32_default.h"
34 #include "basic/default/aimath/aimath_q31_default.h"
35 #include "basic/default/aimath/aimath_q7_default.h"
36
37 #define AILAYER_SOFTSIGN_F32_M() {{0,}}
38 #define AILAYER_SOFTSIGN_F32_A() {{0,}}
39 #define AILAYER_SOFTSIGN_Q31_M() {{0,}}
40 #define AILAYER_SOFTSIGN_Q31_A() {{0,}}
41 #define AILAYER_SOFTSIGN_Q7_M() {{0,}}
42 #define AILAYER_SOFTSIGN_Q7_A() {{0,}}
43
44 typedef struct ailayer_softsign ailayer_softsign_f32_t;
45 typedef struct ailayer_softsign ailayer_softsign_q31_t;
46 typedef struct ailayer_softsign ailayer_softsign_q7_t;
47
68 ailayer_t *ailayer_softsign_f32_default(ailayer_softsign_f32_t *layer, ailayer_t *input_layer);
69
94 ailayer_t *ailayer_softsign_q31_default(ailayer_softsign_q31_t *layer, ailayer_t *input_layer);
95
120 ailayer_t *ailayer_softsign_q7_default(ailayer_softsign_q7_t *layer, ailayer_t *input_layer);
121
130 void ailayer_softsign_calc_result_tensor_params_q31_default(ailayer_t *self);
131
140 void ailayer_softsign_calc_result_tensor_params_q7_default(ailayer_t *self);
141
142 #endif // AILAYER_SOFTSIGN_DEFAULT
ailayer_softsign.h
Base layer implementation of the Softsign activation layer.
ailayer_softsign_calc_result_tensor_params_q7_default
void ailayer_softsign_calc_result_tensor_params_q7_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the softsign Q7 default imple...
ailayer_softsign_calc_result_tensor_params_q31_default
void ailayer_softsign_calc_result_tensor_params_q31_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the softsign Q31 default impl...
ailayer_softsign_f32_default
ailayer_t * ailayer_softsign_f32_default(ailayer_softsign_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Softsign layer with the F32 default implementation.
ailayer_softsign_q31_default
ailayer_t * ailayer_softsign_q31_default(ailayer_softsign_q31_t *layer, ailayer_t *input_layer)
Initializes and connect a Softsign layer with the Q31 default implementation.
ailayer_softsign_q7_default
ailayer_t * ailayer_softsign_q7_default(ailayer_softsign_q7_t *layer, ailayer_t *input_layer)
Initializes and connect a Softsign layer with the Q7 default implementation.
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_softsign
General Softsign layer struct.
Definition: ailayer_softsign.h:48
ailayer
AIfES layer interface.
Definition: aifes_core.h:252