ReduceAllOps.h 651 B

123456789101112131415161718192021
  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. }
  7. namespace at::native {
  8. using reduce_all_fn = void (*)(Tensor & result, const Tensor & self);
  9. using reduce_min_max_fn = void (*)(Tensor & max_result, Tensor & min_result, const Tensor & self);
  10. DECLARE_DISPATCH(reduce_all_fn, min_all_stub)
  11. DECLARE_DISPATCH(reduce_all_fn, max_all_stub)
  12. } // namespace at::native
  13. #else
  14. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  15. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)