AIfES 2 2.0.0
ailayer_elu_default.h
Go to the documentation of this file.
1
28#ifndef AILAYER_ELU_DEFAULT
29#define AILAYER_ELU_DEFAULT
30
32
36
37#define AILAYER_ELU_F32_A(alpha) {{{0,},},alpha}
38#define AILAYER_ELU_F32_M(alpha) {{{0,},},alpha}
39#define AILAYER_ELU_Q31_M(alpha) {{{0,},},alpha}
40#define AILAYER_ELU_Q31_A(alpha) {{{0,},},alpha}
41#define AILAYER_ELU_Q7_M(alpha) {{{0,},},alpha}
42#define AILAYER_ELU_Q7_A(alpha) {{{0,},},alpha}
43
46typedef struct ailayer_elu_q7 ailayer_elu_q7_t;
47
55};
56
64};
65
73};
74
99
127
155
165
175
176#endif // AILAYER_ELU_DEFAULT
Base layer implementation of the ELU activation layer.
ailayer_t * ailayer_elu_f32_default(ailayer_elu_f32_t *layer, ailayer_t *input_layer)
Initializes and connect an ELU layer with the F32 default implementation.
ailayer_t * ailayer_elu_q31_default(ailayer_elu_q31_t *layer, ailayer_t *input_layer)
Initializes and connect a ELU layer with the Q31 default implementation.
void ailayer_elu_calc_result_tensor_params_q31_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the ELU Q31 default implement...
void ailayer_elu_calc_result_tensor_params_q7_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the ELU Q7 default implementa...
ailayer_t * ailayer_elu_q7_default(ailayer_elu_q7_t *layer, ailayer_t *input_layer)
Initializes and connect a ELU layer with the Q7 default implementation.
float aiscalar_f32_t
Scalar for F32 (aif32) data-type.
Definition: aimath_f32.h:109
Math functions for F32 data type, default implementation.
Math functions for Q31 data type, default implementation.
Math functions for Q7 data type, default implementation.
Data-type specific ELU layer struct for F32 .
Definition: ailayer_elu_default.h:52
aiscalar_f32_t alpha
Data-type specific parameter used to calculate ELU function for input values < 0.
Definition: ailayer_elu_default.h:54
ailayer_elu_t base
Inherited field members from general ailayer_elu struct.
Definition: ailayer_elu_default.h:53
Data-type specific ELU layer struct for Q31 .
Definition: ailayer_elu_default.h:61
ailayer_elu_t base
Inherited field members from general ailayer_elu struct.
Definition: ailayer_elu_default.h:62
aiscalar_q31_t alpha
Data-type specific parameter used to calculate ELU function for input values < 0.
Definition: ailayer_elu_default.h:63
Data-type specific ELU layer struct for Q7 .
Definition: ailayer_elu_default.h:70
aiscalar_q7_t alpha
Data-type specific parameter used to calculate ELU function for input values < 0.
Definition: ailayer_elu_default.h:72
ailayer_elu_t base
Inherited field members from general ailayer_elu struct.
Definition: ailayer_elu_default.h:71
General ELU layer struct.
Definition: ailayer_elu.h:53
AIfES layer interface.
Definition: aifes_core.h:252
Single quantized Q31 value/scalar.
Definition: aimath_q31.h:159
Single quantized Q7 value/scalar.
Definition: aimath_q7.h:158