darknet/src/maxpool_layer.h

22 lines
538 B
C
Raw Normal View History

2013-11-04 23:11:01 +04:00
#ifndef MAXPOOL_LAYER_H
#define MAXPOOL_LAYER_H
#include "image.h"
typedef struct {
2014-03-13 08:57:34 +04:00
int batch;
2013-11-13 22:50:38 +04:00
int h,w,c;
2013-11-04 23:11:01 +04:00
int stride;
float *delta;
float *output;
2013-11-04 23:11:01 +04:00
} maxpool_layer;
2013-11-13 22:50:38 +04:00
image get_maxpool_image(maxpool_layer layer);
2014-03-13 08:57:34 +04:00
maxpool_layer *make_maxpool_layer(int batch, int h, int w, int c, int stride);
void resize_maxpool_layer(maxpool_layer *layer, int h, int w, int c);
void forward_maxpool_layer(const maxpool_layer layer, float *in);
void backward_maxpool_layer(const maxpool_layer layer, float *in, float *delta);
2013-11-04 23:11:01 +04:00
#endif