| AIfES 2 2.0.0

ailayer_tanh_default.h
Go to the documentation of this file.
1
27 #ifndef AILAYER_TANH_DEFAULT
28 #define AILAYER_TANH_DEFAULT
29
30 #include "basic/base/ailayer/ailayer_tanh.h"
31
32 #include "basic/default/aimath/aimath_f32_default.h"
33 #include "basic/default/aimath/aimath_q31_default.h"
34 #include "basic/default/aimath/aimath_q7_default.h"
35
36 #define AILAYER_TANH_F32_M() {{0,}}
37 #define AILAYER_TANH_F32_A() {{0,}}
38 #define AILAYER_TANH_Q31_M() {{0,}}
39 #define AILAYER_TANH_Q31_A() {{0,}}
40 #define AILAYER_TANH_Q7_M() {{0,}}
41 #define AILAYER_TANH_Q7_A() {{0,}}
42
43 typedef struct ailayer_tanh ailayer_tanh_f32_t;
44 typedef struct ailayer_tanh ailayer_tanh_q31_t;
45 typedef struct ailayer_tanh ailayer_tanh_q7_t;
46
69 ailayer_t *ailayer_tanh_f32_default(ailayer_tanh_f32_t *layer, ailayer_t *input_layer);
70
94 ailayer_t *ailayer_tanh_q31_default(ailayer_tanh_q31_t *layer, ailayer_t *input_layer);
95
119 ailayer_t *ailayer_tanh_q7_default(ailayer_tanh_q7_t *layer, ailayer_t *input_layer);
120
129 void ailayer_tanh_calc_result_tensor_params_q31_default(ailayer_t *self);
130
139 void ailayer_tanh_calc_result_tensor_params_q7_default(ailayer_t *self);
140
141 #endif // AILAYER_TANH_DEFAULT
ailayer_tanh.h
Base layer implementation of the Tanh activation layer.
ailayer_tanh_q31_default
ailayer_t * ailayer_tanh_q31_default(ailayer_tanh_q31_t *layer, ailayer_t *input_layer)
Initializes and connect a Tanh layer with the Q31 default implementation.
ailayer_tanh_f32_default
ailayer_t * ailayer_tanh_f32_default(ailayer_tanh_f32_t *layer, ailayer_t *input_layer)
Initializes and connect an Tanh layer with the F32 default implementation.
ailayer_tanh_q7_default
ailayer_t * ailayer_tanh_q7_default(ailayer_tanh_q7_t *layer, ailayer_t *input_layer)
Initializes and connect a Tanh layer with the Q7 default implementation.
ailayer_tanh_calc_result_tensor_params_q7_default
void ailayer_tanh_calc_result_tensor_params_q7_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the tanh Q7 default implement...
ailayer_tanh_calc_result_tensor_params_q31_default
void ailayer_tanh_calc_result_tensor_params_q31_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the tanh Q31 default implemen...
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_tanh
General Tanh layer struct.
Definition: ailayer_tanh.h:47
ailayer
AIfES layer interface.
Definition: aifes_core.h:252