darknet/src/dropout_layer.h

21 lines
523 B
C
Raw Normal View History

2014-08-08 23:04:15 +04:00
#ifndef DROPOUT_LAYER_H
#define DROPOUT_LAYER_H
2015-05-11 23:46:49 +03:00
#include "layer.h"
2015-12-14 22:57:10 +03:00
#include "network.h"
2014-08-08 23:04:15 +04:00
2015-05-11 23:46:49 +03:00
typedef layer dropout_layer;
2014-08-08 23:04:15 +04:00
2015-05-11 23:46:49 +03:00
dropout_layer make_dropout_layer(int batch, int inputs, float probability);
2014-08-08 23:04:15 +04:00
void forward_dropout_layer(dropout_layer l, network net);
void backward_dropout_layer(dropout_layer l, network net);
2015-05-11 23:46:49 +03:00
void resize_dropout_layer(dropout_layer *l, int inputs);
2014-12-13 23:01:21 +03:00
#ifdef GPU
void forward_dropout_layer_gpu(dropout_layer l, network net);
void backward_dropout_layer_gpu(dropout_layer l, network net);
2014-08-08 23:04:15 +04:00
#endif
2014-11-19 00:51:04 +03:00
#endif