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.

23 lines
516 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef BATCHNORM_LAYER_H
  2. #define BATCHNORM_LAYER_H
  3. #include "image.h"
  4. #include "layer.h"
  5. #include "network.h"
  6. namespace DN{
  7. layer make_batchnorm_layer(int batch, int w, int h, int c);
  8. void forward_batchnorm_layer(layer l, network net);
  9. void backward_batchnorm_layer(layer l, network net);
  10. #ifdef GPU
  11. void forward_batchnorm_layer_gpu(layer l, network net);
  12. void backward_batchnorm_layer_gpu(layer l, network net);
  13. void pull_batchnorm_layer(layer l);
  14. void push_batchnorm_layer(layer l);
  15. #endif
  16. };
  17. #endif