2013-11-04 23:11:01 +04:00
|
|
|
#ifndef MAXPOOL_LAYER_H
|
|
|
|
#define MAXPOOL_LAYER_H
|
|
|
|
|
|
|
|
#include "image.h"
|
2015-01-23 03:38:24 +03:00
|
|
|
#include "cuda.h"
|
2015-05-11 23:46:49 +03:00
|
|
|
#include "layer.h"
|
2015-12-14 22:57:10 +03:00
|
|
|
#include "network.h"
|
2013-11-04 23:11:01 +04:00
|
|
|
|
2015-05-11 23:46:49 +03:00
|
|
|
typedef layer maxpool_layer;
|
2013-11-04 23:11:01 +04:00
|
|
|
|
2015-05-11 23:46:49 +03:00
|
|
|
image get_maxpool_image(maxpool_layer l);
|
2016-09-02 02:48:41 +03:00
|
|
|
maxpool_layer make_maxpool_layer(int batch, int h, int w, int c, int size, int stride, int padding);
|
2015-07-08 10:36:43 +03:00
|
|
|
void resize_maxpool_layer(maxpool_layer *l, int w, int h);
|
2015-05-11 23:46:49 +03:00
|
|
|
void forward_maxpool_layer(const maxpool_layer l, network_state state);
|
|
|
|
void backward_maxpool_layer(const maxpool_layer l, network_state state);
|
2014-10-22 01:49:18 +04:00
|
|
|
|
|
|
|
#ifdef GPU
|
2015-05-11 23:46:49 +03:00
|
|
|
void forward_maxpool_layer_gpu(maxpool_layer l, network_state state);
|
|
|
|
void backward_maxpool_layer_gpu(maxpool_layer l, network_state state);
|
2014-10-22 01:49:18 +04:00
|
|
|
#endif
|
2013-11-04 23:11:01 +04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|