Joseph Redmon
2014-04-18 324e0a33dd7a3bf5f47c88b37de68dfca917ef2d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MAXPOOL_LAYER_H
#define MAXPOOL_LAYER_H
 
#include "image.h"
 
typedef struct {
    int batch;
    int h,w,c;
    int stride;
    float *delta;
    float *output;
} maxpool_layer;
 
image get_maxpool_image(maxpool_layer layer);
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);
 
#endif