1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| #ifndef MAXPOOL_LAYER_H
| #define MAXPOOL_LAYER_H
|
| #include "image.h"
| #include "dark_cuda.h"
| #include "layer.h"
| #include "network.h"
|
| typedef layer maxpool_layer;
|
| #ifdef __cplusplus
| extern "C" {
| #endif
| image get_maxpool_image(maxpool_layer l);
| maxpool_layer make_maxpool_layer(int batch, int h, int w, int c, int size, int stride_x, int stride_y, int padding, int maxpool_depth, int out_channels, int antialiasing, int avgpool, int train);
| void resize_maxpool_layer(maxpool_layer *l, int w, int h);
| void forward_maxpool_layer(const maxpool_layer l, network_state state);
| void backward_maxpool_layer(const maxpool_layer l, network_state state);
|
| void forward_local_avgpool_layer(const maxpool_layer l, network_state state);
| void backward_local_avgpool_layer(const maxpool_layer l, network_state state);
|
| #ifdef GPU
| void forward_maxpool_layer_gpu(maxpool_layer l, network_state state);
| void backward_maxpool_layer_gpu(maxpool_layer l, network_state state);
| void cudnn_maxpool_setup(maxpool_layer *l);
|
| void forward_local_avgpool_layer_gpu(maxpool_layer layer, network_state state);
| void backward_local_avgpool_layer_gpu(maxpool_layer layer, network_state state);
| #endif // GPU
|
| #ifdef __cplusplus
| }
| #endif
|
| #endif
|
|