27 #ifndef AILAYER_LEAKY_RELU_DEFAULT
28 #define AILAYER_LEAKY_RELU_DEFAULT
36 #define AILAYER_LEAKY_RELU_F32_A(alpha) {{{0,},},alpha}
37 #define AILAYER_LEAKY_RELU_F32_M(alpha) {{{0,},},alpha}
38 #define AILAYER_LEAKY_RELU_Q31_M(alpha) {{{0,},},alpha}
39 #define AILAYER_LEAKY_RELU_Q31_A(alpha) {{{0,},},alpha}
40 #define AILAYER_LEAKY_RELU_Q7_M(alpha) {{{0,},},alpha}
41 #define AILAYER_LEAKY_RELU_Q7_A(alpha) {{{0,},},alpha}
Base layer implementation of the Leaky ReLU activation layer.
void ailayer_leaky_relu_calc_result_tensor_params_q7_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the Leaky ReLU Q7 default imp...
void ailayer_leaky_relu_calc_result_tensor_params_q31_default(ailayer_t *self)
Calculate and set the quantization parameters for the result tensor of the Leaky ReLU Q31 default im...
ailayer_t * ailayer_leaky_relu_q7_default(ailayer_leaky_relu_q7_t *layer, ailayer_t *input_layer)
Initializes and connect a Leaky ReLU layer with the Q7 default implementation.
ailayer_t * ailayer_leaky_relu_q31_default(ailayer_leaky_relu_q31_t *layer, ailayer_t *input_layer)
Initializes and connect a Leaky ReLU layer with the Q31 default implementation.
ailayer_t * ailayer_leaky_relu_f32_default(ailayer_leaky_relu_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Leaky ReLU layer with the F32 default implementation.
float aiscalar_f32_t
Scalar for F32 (aif32) data-type.
Definition: aimath_f32.h:120
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 Leaky ReLU layer struct for F32 .
Definition: ailayer_leaky_relu_default.h:51
aiscalar_f32_t alpha
Data type-specific parameter used to calculate Leaky ReLU function for input values < 0.
Definition: ailayer_leaky_relu_default.h:53
ailayer_leaky_relu_t base
Inherited field members from general ailayer_leaky_relu struct.
Definition: ailayer_leaky_relu_default.h:52
Data-type specific Leaky ReLU layer struct for Q31 .
Definition: ailayer_leaky_relu_default.h:60
aiscalar_q31_t alpha
Data type-specific parameter used to calculate Leaky ReLU function for input values < 0.
Definition: ailayer_leaky_relu_default.h:62
ailayer_leaky_relu_t base
Inherited field members from general ailayer_leaky_relu struct.
Definition: ailayer_leaky_relu_default.h:61
Data-type specific Leaky ReLU layer struct for Q7 .
Definition: ailayer_leaky_relu_default.h:69
aiscalar_q7_t alpha
Data type-specific parameter used to calculate Leaky ReLU function for input values < 0.
Definition: ailayer_leaky_relu_default.h:71
ailayer_leaky_relu_t base
Inherited field members from general ailayer_leaky_relu struct.
Definition: ailayer_leaky_relu_default.h:70
General Leaky ReLU layer struct.
Definition: ailayer_leaky_relu.h:50
AIfES layer interface.
Definition: aifes_core.h:252
Single quantized Q31 value/scalar.
Definition: aimath_q31.h:156
Single quantized Q7 value/scalar.
Definition: aimath_q7.h:155