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

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef DECONVOLUTIONAL_LAYER_H
  2. #define DECONVOLUTIONAL_LAYER_H
  3. #include "dn_cuda.h"
  4. #include "image.h"
  5. #include "activations.h"
  6. #include "layer.h"
  7. #include "network.h"
  8. namespace DN{
  9. #ifdef GPU
  10. void forward_deconvolutional_layer_gpu(layer l, network net);
  11. void backward_deconvolutional_layer_gpu(layer l, network net);
  12. void update_deconvolutional_layer_gpu(layer l, update_args a);
  13. void push_deconvolutional_layer(layer l);
  14. void pull_deconvolutional_layer(layer l);
  15. #endif
  16. layer make_deconvolutional_layer(int batch, int h, int w, int c, int n, int size, int stride, int padding, ACTIVATION activation, int batch_normalize, int adam);
  17. void resize_deconvolutional_layer(layer *l, int h, int w);
  18. void forward_deconvolutional_layer(const layer l, network net);
  19. void update_deconvolutional_layer(layer l, update_args a);
  20. void backward_deconvolutional_layer(layer l, network net);
  21. };
  22. #endif