upsample_layer.h 601 B

1234567891011121314151617181920212223
  1. #ifndef UPSAMPLE_LAYER_H
  2. #define UPSAMPLE_LAYER_H
  3. #include "dark_cuda.h"
  4. #include "layer.h"
  5. #include "network.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. layer make_upsample_layer(int batch, int w, int h, int c, int stride);
  10. void forward_upsample_layer(const layer l, network_state state);
  11. void backward_upsample_layer(const layer l, network_state state);
  12. void resize_upsample_layer(layer *l, int w, int h);
  13. #ifdef GPU
  14. void forward_upsample_layer_gpu(const layer l, network_state state);
  15. void backward_upsample_layer_gpu(const layer l, network_state state);
  16. #endif
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif