27 #ifndef AILAYER_BATCH_NORM_DEFAULT
28 #define AILAYER_BATCH_NORM_DEFAULT
34 #define AILAYER_BATCH_NORM_F32_M(momentum, eps, moving_mean, moving_variance, beta, gamma) \
35 {{{0,},0,0,0,{0,0,0,0,(float *) beta},{0,0,0,0,(float *) gamma}, \
36 {0,0,0,0,(float *) moving_mean},{0,0,0,0,(float *) moving_variance} }, momentum, eps}
37 #define AILAYER_BATCH_NORM_F32_A(momentum, eps) {{{0,}}, momentum, eps}
Base layer implementation of the Batch Normalization layer.
ailayer_t * ailayer_batch_norm_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Batch Normalization layer with the F32 default implementation.
ailayer_t * ailayer_batch_norm_cfirst_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Batch Normalization layer (channels first) with the F32 default implement...
ailayer_t * ailayer_batch_norm_clast_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Batch Normalization layer (channels last) with the F32 default implementa...
ailayer_t * ailayer_batch_norm_lc_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Batch Normalization layer (channels first) with the F32 default implement...
ailayer_t * ailayer_batch_norm_hwc_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Batch Normalization layer (channels first) with the F32 default implement...
ailayer_t * ailayer_batch_norm_cl_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Batch Normalization layer (channels first) with the F32 default implement...
void ailayer_batch_norm_init_params_f32_default(ailayer_t *self)
F32 default implementation of the ailayer.init_params function for the Batch Normalization layer
ailayer_t * ailayer_batch_norm_chw_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Batch Normalization layer (channels first) with the F32 default implement...
Math functions for F32 data type, CNN-specific implementation.
float aiscalar_f32_t
Scalar for F32 (aif32) data-type.
Definition: aimath_f32.h:120
Math functions for F32 data type, default implementation.
Data-type specific Batch Normalization layer struct for F32 .
Definition: ailayer_batch_normalization_default.h:46
ailayer_batch_norm_t base
Inherited field members from general layer struct.
Definition: ailayer_batch_normalization_default.h:47
aiscalar_f32_t eps
Storage for ailayer_batch_norm.eps scalar in F32.
Definition: ailayer_batch_normalization_default.h:50
aiscalar_f32_t momentum
Storage for ailayer_batch_norm.momentum scalar in F32.
Definition: ailayer_batch_normalization_default.h:49
General Batch Normalization layer structure.
Definition: ailayer_batch_normalization.h:75
AIfES layer interface.
Definition: aifes_core.h:252