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