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.

26 lines
693 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef CONNECTED_LAYER_H
  2. #define CONNECTED_LAYER_H
  3. #include "activations.h"
  4. #include "layer.h"
  5. #include "network.h"
  6. namespace DN{
  7. layer make_connected_layer(int batch, int inputs, int outputs, ACTIVATION activation, int batch_normalize, int adam);
  8. void forward_connected_layer(layer l, network net);
  9. void backward_connected_layer(layer l, network net);
  10. void update_connected_layer(layer l, update_args a);
  11. #ifdef GPU
  12. void forward_connected_layer_gpu(layer l, network net);
  13. void backward_connected_layer_gpu(layer l, network net);
  14. void update_connected_layer_gpu(layer l, update_args a);
  15. void push_connected_layer(layer l);
  16. void pull_connected_layer(layer l);
  17. #endif
  18. };
  19. #endif