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.

24 lines
602 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef COST_LAYER_H
  2. #define COST_LAYER_H
  3. #include "layer.h"
  4. #include "network.h"
  5. namespace DN{
  6. typedef layer cost_layer;
  7. COST_TYPE get_cost_type(char *s);
  8. char *get_cost_string(COST_TYPE a);
  9. cost_layer make_cost_layer(int batch, int inputs, COST_TYPE type, float scale);
  10. void forward_cost_layer(const cost_layer l, network net);
  11. void backward_cost_layer(const cost_layer l, network net);
  12. void resize_cost_layer(cost_layer *l, int inputs);
  13. #ifdef GPU
  14. void forward_cost_layer_gpu(cost_layer l, network net);
  15. void backward_cost_layer_gpu(const cost_layer l, network net);
  16. #endif
  17. };
  18. #endif