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
630 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef SOFTMAX_LAYER_H
  2. #define SOFTMAX_LAYER_H
  3. #include "layer.h"
  4. #include "network.h"
  5. namespace DN{
  6. typedef layer softmax_layer;
  7. void softmax_array(float *input, int n, float temp, float *output);
  8. softmax_layer make_softmax_layer(int batch, int inputs, int groups);
  9. void forward_softmax_layer(const softmax_layer l, network net);
  10. void backward_softmax_layer(const softmax_layer l, network net);
  11. #ifdef GPU
  12. void pull_softmax_layer_output(const softmax_layer l);
  13. void forward_softmax_layer_gpu(const softmax_layer l, network net);
  14. void backward_softmax_layer_gpu(const softmax_layer l, network net);
  15. #endif
  16. };
  17. #endif