| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
- #pragma once
- #include <ATen/native/DispatchStub.h>
- #include <c10/core/ScalarType.h>
- #include <cstdint>
- namespace at::native {
- using unfold2d_copy_fn = void (*)(
- ScalarType dtype,
- void *finput,
- const void *input,
- int64_t kH,
- int64_t kW,
- int64_t dH,
- int64_t dW,
- int64_t padH,
- int64_t padW,
- int64_t n_input_plane,
- int64_t input_height,
- int64_t input_width,
- int64_t output_height,
- int64_t output_width,
- bool is_channels_last
- );
- using unfold2d_acc_fn = void (*)(
- ScalarType dtype,
- void *finput,
- void *input,
- int64_t kH,
- int64_t kW,
- int64_t dH,
- int64_t dW,
- int64_t padH,
- int64_t padW,
- int64_t n_input_plane,
- int64_t input_height,
- int64_t input_width,
- int64_t output_height,
- int64_t output_width,
- bool is_channels_last
- );
- DECLARE_DISPATCH(unfold2d_copy_fn, unfolded2d_copy_stub)
- DECLARE_DISPATCH(unfold2d_acc_fn, unfolded2d_acc_stub)
- } // namespace at::native
- #else
- #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
- #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
|