| AIfES 2 2.0.0

ailayer_maxpool2d_default.h
Go to the documentation of this file.
1
24 #ifndef AILAYER_MAXPOOL2D_DEFAULT
25 #define AILAYER_MAXPOOL2D_DEFAULT
26
27 #include "cnn/base/ailayer/ailayer_maxpool2d.h"
28
29 #include "cnn/default/aimath/aimath_cnn_f32_default.h"
30 #include "basic/default/aimath/aimath_f32_default.h"
31
32 #define HW(h, w) {h, w}
33
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,}
38
39 typedef struct ailayer_maxpool2d ailayer_maxpool2d_f32_t;
40
93 ailayer_t *ailayer_maxpool2d_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer);
94
103 ailayer_t *ailayer_maxpool2d_cfirst_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer);
104
113 ailayer_t *ailayer_maxpool2d_chw_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer);
114
123 ailayer_t *ailayer_maxpool2d_clast_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer);
124
133 ailayer_t *ailayer_maxpool2d_hwc_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer);
134
135
136 #endif // AILAYER_CONV2D_DEFAULT
137
ailayer_maxpool2d.h
Base layer implementation of the MaxPool2D layer.
ailayer_maxpool2d_f32_default
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_maxpool2d_chw_f32_default
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_maxpool2d_cfirst_f32_default
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_maxpool2d_hwc_f32_default
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_maxpool2d_clast_f32_default
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.
aimath_cnn_f32_default.h
Math functions for F32 data type, CNN-specific implementation.
aimath_f32_default.h
Math functions for F32 data type, default implementation.
ailayer_maxpool2d
General layer structure.
Definition: ailayer_maxpool2d.h:51
ailayer
AIfES layer interface.
Definition: aifes_core.h:252