Normalization.h 302 B

123456789101112
  1. #pragma once
  2. #include <ATen/TensorIterator.h>
  3. #include <ATen/native/DispatchStub.h>
  4. namespace at {
  5. namespace native {
  6. using renorm_scale_factor_fn = void (*) (TensorIteratorBase& iter, double maxnorm);
  7. DECLARE_DISPATCH(renorm_scale_factor_fn, renorm_scale_factor_stub);
  8. }} // namespace at::native