LinearAlgebra.h 553 B

12345678910111213141516171819202122
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <ATen/native/DispatchStub.h>
  4. namespace c10 {
  5. class Scalar;
  6. }
  7. namespace at {
  8. struct TensorIterator;
  9. }
  10. namespace at::native {
  11. using addr_fn = void (*)(TensorIterator &, const Scalar& beta, const Scalar& alpha);
  12. DECLARE_DISPATCH(addr_fn, addr_stub)
  13. } // namespace at::native
  14. #else
  15. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  16. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)