Joseph Redmon
2014-10-25 14303717dcddae43cdc55beb0685dae86f566fd8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef DROPOUT_LAYER_H
#define DROPOUT_LAYER_H
 
typedef struct{
    int batch;
    int inputs;
    float probability;
} dropout_layer;
 
dropout_layer *make_dropout_layer(int batch, int inputs, float probability);
 
void forward_dropout_layer(dropout_layer layer, float *input);
void backward_dropout_layer(dropout_layer layer, float *input, float *delta);
 
#endif