1 #pragma once 2 3 #include <ATen/native/DispatchStub.h> 4 5 namespace at { 6 class Tensor; 7 } 8 9 namespace at::native { 10 11 using reduce_all_fn = void (*)(Tensor & result, const Tensor & self); 12 using reduce_min_max_fn = void (*)(Tensor & max_result, Tensor & min_result, const Tensor & self); 13 DECLARE_DISPATCH(reduce_all_fn, min_all_stub); 14 DECLARE_DISPATCH(reduce_all_fn, max_all_stub); 15 16 } // namespace at::native 17