reorg_layer.h 599 B

1234567891011121314151617181920212223242526
  1. #ifndef REORG_LAYER_H
  2. #define REORG_LAYER_H
  3. #include "image.h"
  4. #include "dark_cuda.h"
  5. #include "layer.h"
  6. #include "network.h"
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. layer make_reorg_layer(int batch, int w, int h, int c, int stride, int reverse);
  11. void resize_reorg_layer(layer *l, int w, int h);
  12. void forward_reorg_layer(const layer l, network_state state);
  13. void backward_reorg_layer(const layer l, network_state state);
  14. #ifdef GPU
  15. void forward_reorg_layer_gpu(layer l, network_state state);
  16. void backward_reorg_layer_gpu(layer l, network_state state);
  17. #endif
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif