FunctionOfAMatrixUtils.h 642 B

12345678910111213141516171819202122232425
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <ATen/native/DispatchStub.h>
  4. #include <cstdint>
  5. namespace at {
  6. struct TensorIterator;
  7. namespace native {
  8. using _compute_linear_combination_fn = void(*)(
  9. TensorIterator& iter,
  10. int64_t in_stride,
  11. int64_t coeff_stride,
  12. int64_t num_summations
  13. );
  14. DECLARE_DISPATCH(_compute_linear_combination_fn, _compute_linear_combination_stub)
  15. }} // namespace at::native
  16. #else
  17. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  18. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)