Joseph Redmon
2014-08-11 176d65b76583803cf10194c4c70bdc51897f2ae3
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