Go to the documentation of this file.00001 #ifndef MAXPOOL_LAYER_H
00002 #define MAXPOOL_LAYER_H
00003
00004 #include "image.h"
00005 #include "cuda.h"
00006 #include "layer.h"
00007 #include "network.h"
00008
00009 typedef layer maxpool_layer;
00010
00011 image get_maxpool_image(maxpool_layer l);
00012 maxpool_layer make_maxpool_layer(int batch, int h, int w, int c, int size, int stride, int padding);
00013 void resize_maxpool_layer(maxpool_layer *l, int w, int h);
00014 void forward_maxpool_layer(const maxpool_layer l, network_state state);
00015 void backward_maxpool_layer(const maxpool_layer l, network_state state);
00016
00017 #ifdef GPU
00018 void forward_maxpool_layer_gpu(maxpool_layer l, network_state state);
00019 void backward_maxpool_layer_gpu(maxpool_layer l, network_state state);
00020 #endif
00021
00022 #endif
00023