div_native.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/div_meta.h>
  14. namespace at {
  15. namespace native {
  16. struct TORCH_API structured_div_out : public at::meta::structured_div_Tensor {
  17. void impl(const at::Tensor & self, const at::Tensor & other, const at::Tensor & out);
  18. };
  19. TORCH_API at::Tensor NestedTensor_div_Tensor(const at::Tensor & self, const at::Tensor & other);
  20. TORCH_API at::Tensor div_sparse(const at::Tensor & self, const at::Tensor & other);
  21. TORCH_API at::Tensor & div_out_sparse_zerodim(const at::Tensor & self, const at::Tensor & other, at::Tensor & out);
  22. TORCH_API at::Tensor & div_sparse_(at::Tensor & self, const at::Tensor & other);
  23. TORCH_API at::Tensor div_zerotensor(const at::Tensor & self, const at::Tensor & other);
  24. struct TORCH_API structured_div_out_mode : public at::meta::structured_div_Tensor_mode {
  25. void impl(const at::Tensor & self, const at::Tensor & other, c10::optional<c10::string_view> rounding_mode, const at::Tensor & out);
  26. };
  27. TORCH_API at::Tensor div_sparse(const at::Tensor & self, const at::Tensor & other, c10::optional<c10::string_view> rounding_mode);
  28. TORCH_API at::Tensor & div_out_sparse_zerodim(const at::Tensor & self, const at::Tensor & other, c10::optional<c10::string_view> rounding_mode, at::Tensor & out);
  29. TORCH_API at::Tensor & div_sparse_(at::Tensor & self, const at::Tensor & other, c10::optional<c10::string_view> rounding_mode);
  30. TORCH_API at::Tensor div(const at::Tensor & self, const at::Scalar & other);
  31. TORCH_API at::Tensor & div_Scalar_out(const at::Tensor & self, const at::Scalar & other, at::Tensor & out);
  32. TORCH_API at::Tensor & div_(at::Tensor & self, const at::Scalar & other);
  33. TORCH_API at::Tensor NestedTensor_div_Scalar(const at::Tensor & self, const at::Scalar & other);
  34. TORCH_API at::Tensor div(const at::Tensor & self, const at::Scalar & other, c10::optional<c10::string_view> rounding_mode);
  35. TORCH_API at::Tensor & div_Scalar_mode_out(const at::Tensor & self, const at::Scalar & other, c10::optional<c10::string_view> rounding_mode, at::Tensor & out);
  36. TORCH_API at::Tensor & div_(at::Tensor & self, const at::Scalar & other, c10::optional<c10::string_view> rounding_mode);
  37. } // namespace native
  38. } // namespace at