Joseph Redmon
2014-10-26 5c9a773bb6e994889354c181de5a872e867aa35b
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