darknet/src/dropout_layer.h

16 lines
364 B
C
Raw Normal View History

2014-08-08 23:04:15 +04:00
#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