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.

29 lines
653 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef RNN_LAYER_H
  2. #define RNN_LAYER_H
  3. #include "activations.h"
  4. #include "layer.h"
  5. #include "network.h"
  6. #define USET
  7. namespace DN{
  8. layer make_rnn_layer(int batch, int inputs, int outputs, int steps, ACTIVATION activation, int batch_normalize, int adam);
  9. void forward_rnn_layer(layer l, network net);
  10. void backward_rnn_layer(layer l, network net);
  11. void update_rnn_layer(layer l, update_args a);
  12. #ifdef GPU
  13. void forward_rnn_layer_gpu(layer l, network net);
  14. void backward_rnn_layer_gpu(layer l, network net);
  15. void update_rnn_layer_gpu(layer l, update_args a);
  16. void push_rnn_layer(layer l);
  17. void pull_rnn_layer(layer l);
  18. #endif
  19. };
  20. #endif