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.

28 lines
625 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef GRU_LAYER_H
  2. #define GRU_LAYER_H
  3. #include "activations.h"
  4. #include "layer.h"
  5. #include "network.h"
  6. namespace DN{
  7. layer make_gru_layer(int batch, int inputs, int outputs, int steps, int batch_normalize, int adam);
  8. void forward_gru_layer(layer l, network state);
  9. void backward_gru_layer(layer l, network state);
  10. void update_gru_layer(layer l, update_args a);
  11. #ifdef GPU
  12. void forward_gru_layer_gpu(layer l, network state);
  13. void backward_gru_layer_gpu(layer l, network state);
  14. void update_gru_layer_gpu(layer l, update_args a);
  15. void push_gru_layer(layer l);
  16. void pull_gru_layer(layer l);
  17. #endif
  18. };
  19. #endif