mm_native.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. // @generated by torchgen/gen.py from NativeFunction.h
  3. #include <c10/core/Scalar.h>
  4. #include <c10/core/Storage.h>
  5. #include <c10/core/TensorOptions.h>
  6. #include <c10/util/Deprecated.h>
  7. #include <c10/util/Optional.h>
  8. #include <c10/core/QScheme.h>
  9. #include <ATen/core/Reduction.h>
  10. #include <ATen/core/Tensor.h>
  11. #include <tuple>
  12. #include <vector>
  13. #include <ATen/ops/mm_meta.h>
  14. namespace at {
  15. namespace native {
  16. struct TORCH_API structured_mm_out_cpu : public at::meta::structured_mm {
  17. void impl(const at::Tensor & self, const at::Tensor & mat2, const at::Tensor & out);
  18. };
  19. struct TORCH_API structured_mm_out_cuda : public at::meta::structured_mm {
  20. void impl(const at::Tensor & self, const at::Tensor & mat2, const at::Tensor & out);
  21. };
  22. TORCH_API at::Tensor _sparse_mm(const at::Tensor & self, const at::Tensor & mat2);
  23. TORCH_API at::Tensor & _sparse_mm_out(const at::Tensor & self, const at::Tensor & mat2, at::Tensor & out);
  24. TORCH_API at::Tensor _sparse_csr_mm(const at::Tensor & self, const at::Tensor & mat2);
  25. TORCH_API at::Tensor & _sparse_csr_mm_out(const at::Tensor & self, const at::Tensor & mat2, at::Tensor & out);
  26. } // namespace native
  27. } // namespace at