Unfold2d.h 621 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <ATen/native/DispatchStub.h>
  3. #include <c10/core/ScalarType.h>
  4. #include <cstdint>
  5. namespace at { namespace native {
  6. using unfold2d_fn = void (*)(
  7. ScalarType dtype,
  8. void *finput,
  9. void *input,
  10. int64_t kH,
  11. int64_t kW,
  12. int64_t dH,
  13. int64_t dW,
  14. int64_t padH,
  15. int64_t padW,
  16. int64_t n_input_plane,
  17. int64_t input_height,
  18. int64_t input_width,
  19. int64_t output_height,
  20. int64_t output_width,
  21. bool is_channels_last
  22. );
  23. DECLARE_DISPATCH(unfold2d_fn, unfolded2d_copy_stub);
  24. DECLARE_DISPATCH(unfold2d_fn, unfolded2d_acc_stub);
  25. }} // namespace at::native