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

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef LSTM_LAYER_H
  2. #define LSTM_LAYER_H
  3. #include "activations.h"
  4. #include "layer.h"
  5. #include "network.h"
  6. #define USET
  7. namespace DN{
  8. layer make_lstm_layer(int batch, int inputs, int outputs, int steps, int batch_normalize, int adam);
  9. void forward_lstm_layer(layer l, network net);
  10. void update_lstm_layer(layer l, update_args a);
  11. #ifdef GPU
  12. void forward_lstm_layer_gpu(layer l, network net);
  13. void backward_lstm_layer_gpu(layer l, network net);
  14. void update_lstm_layer_gpu(layer l, update_args a);
  15. #endif
  16. };
  17. #endif