You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
550 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef DROPOUT_LAYER_H
  2. #define DROPOUT_LAYER_H
  3. #include "layer.h"
  4. #include "network.h"
  5. namespace DN{
  6. typedef layer dropout_layer;
  7. dropout_layer make_dropout_layer(int batch, int inputs, float probability);
  8. void forward_dropout_layer(dropout_layer l, network net);
  9. void backward_dropout_layer(dropout_layer l, network net);
  10. void resize_dropout_layer(dropout_layer *l, int inputs);
  11. #ifdef GPU
  12. void forward_dropout_layer_gpu(dropout_layer l, network net);
  13. void backward_dropout_layer_gpu(dropout_layer l, network net);
  14. #endif
  15. };
  16. #endif