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.

22 lines
555 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef ROUTE_LAYER_H
  2. #define ROUTE_LAYER_H
  3. #include "network.h"
  4. #include "layer.h"
  5. namespace DN{
  6. typedef layer route_layer;
  7. route_layer make_route_layer(int batch, int n, int *input_layers, int *input_size);
  8. void forward_route_layer(const route_layer l, network net);
  9. void backward_route_layer(const route_layer l, network net);
  10. void resize_route_layer(route_layer *l, network *net);
  11. #ifdef GPU
  12. void forward_route_layer_gpu(const route_layer l, network net);
  13. void backward_route_layer_gpu(const route_layer l, network net);
  14. #endif
  15. };
  16. #endif