24 #ifndef AILAYER_MAXPOOL2D_DEFAULT
25 #define AILAYER_MAXPOOL2D_DEFAULT
32 #define HW(h, w) {h, w}
34 #define AILAYER_MAXPOOL2D_F32_M(pool_size, stride, padding) \
35 {{0,},pool_size,stride,padding,}
36 #define AILAYER_MAXPOOL2D_F32_A(pool_size, stride, padding) \
37 {{0,},pool_size,stride,padding,}
Base layer implementation of the MaxPool2D layer.
ailayer_t * ailayer_maxpool2d_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Conv2D layer with the F32 default implementation.
ailayer_t * ailayer_maxpool2d_chw_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a MaxPool2D layer (channels first) with the F32 default implementation.
ailayer_t * ailayer_maxpool2d_cfirst_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a MaxPool2D layer (channels first) with the F32 default implementation.
ailayer_t * ailayer_maxpool2d_hwc_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a MaxPool2D layer (channels last) with the F32 default implementation.
ailayer_t * ailayer_maxpool2d_clast_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a MaxPool2D layer (channels last) with the F32 default implementation.
Math functions for F32 data type, CNN-specific implementation.
Math functions for F32 data type, default implementation.
General layer structure.
Definition: ailayer_maxpool2d.h:51
AIfES layer interface.
Definition: aifes_core.h:252