div.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #pragma once
  2. // @generated by torchgen/gen.py from Function.h
  3. #include <ATen/Context.h>
  4. #include <ATen/DeviceGuard.h>
  5. #include <ATen/TensorUtils.h>
  6. #include <ATen/TracerMode.h>
  7. #include <ATen/core/Generator.h>
  8. #include <ATen/core/Reduction.h>
  9. #include <ATen/core/Tensor.h>
  10. #include <c10/core/Scalar.h>
  11. #include <c10/core/Storage.h>
  12. #include <c10/core/TensorOptions.h>
  13. #include <c10/util/Deprecated.h>
  14. #include <c10/util/Optional.h>
  15. #include <ATen/ops/div_ops.h>
  16. namespace at {
  17. // aten::div.Tensor(Tensor self, Tensor other) -> Tensor
  18. inline at::Tensor div(const at::Tensor & self, const at::Tensor & other) {
  19. return at::_ops::div_Tensor::call(self, other);
  20. }
  21. // aten::div.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)
  22. inline at::Tensor & div_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other) {
  23. return at::_ops::div_out::call(self, other, out);
  24. }
  25. // aten::div.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)
  26. inline at::Tensor & div_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out) {
  27. return at::_ops::div_out::call(self, other, out);
  28. }
  29. // aten::div.Tensor_mode(Tensor self, Tensor other, *, str? rounding_mode) -> Tensor
  30. inline at::Tensor div(const at::Tensor & self, const at::Tensor & other, c10::optional<c10::string_view> rounding_mode) {
  31. return at::_ops::div_Tensor_mode::call(self, other, rounding_mode);
  32. }
  33. // aten::div.out_mode(Tensor self, Tensor other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!)
  34. inline at::Tensor & div_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other, c10::optional<c10::string_view> rounding_mode) {
  35. return at::_ops::div_out_mode::call(self, other, rounding_mode, out);
  36. }
  37. // aten::div.out_mode(Tensor self, Tensor other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!)
  38. inline at::Tensor & div_outf(const at::Tensor & self, const at::Tensor & other, c10::optional<c10::string_view> rounding_mode, at::Tensor & out) {
  39. return at::_ops::div_out_mode::call(self, other, rounding_mode, out);
  40. }
  41. // aten::div.Scalar(Tensor self, Scalar other) -> Tensor
  42. inline at::Tensor div(const at::Tensor & self, const at::Scalar & other) {
  43. return at::_ops::div_Scalar::call(self, other);
  44. }
  45. // aten::div.Scalar_mode(Tensor self, Scalar other, *, str? rounding_mode) -> Tensor
  46. inline at::Tensor div(const at::Tensor & self, const at::Scalar & other, c10::optional<c10::string_view> rounding_mode) {
  47. return at::_ops::div_Scalar_mode::call(self, other, rounding_mode);
  48. }
  49. // aten::div.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!)
  50. inline at::Tensor & div_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other) {
  51. return at::_ops::div_Scalar_out::call(self, other, out);
  52. }
  53. // aten::div.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!)
  54. inline at::Tensor & div_outf(const at::Tensor & self, const at::Scalar & other, at::Tensor & out) {
  55. return at::_ops::div_Scalar_out::call(self, other, out);
  56. }
  57. // aten::div.Scalar_mode_out(Tensor self, Scalar other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!)
  58. inline at::Tensor & div_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other, c10::optional<c10::string_view> rounding_mode) {
  59. return at::_ops::div_Scalar_mode_out::call(self, other, rounding_mode, out);
  60. }
  61. // aten::div.Scalar_mode_out(Tensor self, Scalar other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!)
  62. inline at::Tensor & div_outf(const at::Tensor & self, const at::Scalar & other, c10::optional<c10::string_view> rounding_mode, at::Tensor & out) {
  63. return at::_ops::div_Scalar_mode_out::call(self, other, rounding_mode, out);
  64. }
  65. }