probably how maxpool layers should be

This commit is contained in:
Joseph Redmon
2014-08-08 12:04:15 -07:00
parent b32a287e38
commit d9f1b0b16e
32 changed files with 1044 additions and 746 deletions

15
src/dropout_layer.h Normal file
View File

@ -0,0 +1,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