AIfES 2 2.0.0
ailayer_tanh_default.h
Go to the documentation of this file.
1
30#ifndef AILAYER_TANH_DEFAULT
31#define AILAYER_TANH_DEFAULT
32
34
38
39#define AILAYER_TANH_F32_M() {{0,}}
40#define AILAYER_TANH_F32_A() {{0,}}
41#define AILAYER_TANH_Q31_M() {{0,}}
42#define AILAYER_TANH_Q31_A() {{0,}}
43#define AILAYER_TANH_Q7_M() {{0,}}
44#define AILAYER_TANH_Q7_A() {{0,}}
45
46typedef struct ailayer_tanh ailayer_tanh_f32_t;
47typedef struct ailayer_tanh ailayer_tanh_q31_t;
48typedef struct ailayer_tanh ailayer_tanh_q7_t;
49
73
98
123
133
143
144#endif // AILAYER_TANH_DEFAULT
Base layer implementation of the Tanh activation layer.
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_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_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.
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...
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...
Math functions for F32 data type, default implementation.
Math functions for Q31 data type, default implementation.
Math functions for Q7 data type, default implementation.
General Tanh layer struct.
Definition: ailayer_tanh.h:50
AIfES layer interface.
Definition: aifes_core.h:252