Cross.h 513 B

12345678910111213141516171819
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <ATen/native/DispatchStub.h>
  4. namespace at {
  5. class Tensor;
  6. namespace native {
  7. using cross_fn = void(*)(const Tensor&, const Tensor&, const Tensor&, const int64_t d);
  8. DECLARE_DISPATCH(cross_fn, cross_stub)
  9. }} // namespace at::native
  10. #else
  11. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  12. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)