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/max_ops.h>
21
22namespace at {
23
24
25// aten::max.dim(Tensor self, int dim, bool keepdim=False) -> (Tensor values, Tensor indices)
26inline ::std::tuple<at::Tensor,at::Tensor> max(const at::Tensor & self, int64_t dim, bool keepdim=false) {
27 return at::_ops::max_dim::call(self, dim, keepdim);
28}
29
30// aten::max.dim_max(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices)
31inline ::std::tuple<at::Tensor &,at::Tensor &> max_out(at::Tensor & max, at::Tensor & max_values, const at::Tensor & self, int64_t dim, bool keepdim=false) {
32 return at::_ops::max_dim_max::call(self, dim, keepdim, max, max_values);
33}
34// aten::max.dim_max(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices)
35inline ::std::tuple<at::Tensor &,at::Tensor &> max_outf(const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & max, at::Tensor & max_values) {
36 return at::_ops::max_dim_max::call(self, dim, keepdim, max, max_values);
37}
38
39// aten::max.names_dim(Tensor self, Dimname dim, bool keepdim=False) -> (Tensor values, Tensor indices)
40inline ::std::tuple<at::Tensor,at::Tensor> max(const at::Tensor & self, at::Dimname dim, bool keepdim=false) {
41 return at::_ops::max_names_dim::call(self, dim, keepdim);
42}
43
44// aten::max.names_dim_max(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices)
45inline ::std::tuple<at::Tensor &,at::Tensor &> max_out(at::Tensor & max, at::Tensor & max_values, const at::Tensor & self, at::Dimname dim, bool keepdim=false) {
46 return at::_ops::max_names_dim_max::call(self, dim, keepdim, max, max_values);
47}
48// aten::max.names_dim_max(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices)
49inline ::std::tuple<at::Tensor &,at::Tensor &> max_outf(const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & max, at::Tensor & max_values) {
50 return at::_ops::max_names_dim_max::call(self, dim, keepdim, max, max_values);
51}
52
53// aten::max(Tensor self) -> Tensor
54inline at::Tensor max(const at::Tensor & self) {
55 return at::_ops::max::call(self);
56}
57
58// aten::max.other(Tensor self, Tensor other) -> Tensor
59inline at::Tensor max(const at::Tensor & self, const at::Tensor & other) {
60 return at::_ops::max_other::call(self, other);
61}
62
63// aten::max.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)
64inline at::Tensor & max_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other) {
65 return at::_ops::max_out::call(self, other, out);
66}
67// aten::max.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)
68inline at::Tensor & max_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out) {
69 return at::_ops::max_out::call(self, other, out);
70}
71
72// aten::max.unary_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)
73inline at::Tensor & max_out(at::Tensor & out, const at::Tensor & self) {
74 return at::_ops::max_unary_out::call(self, out);
75}
76// aten::max.unary_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)
77inline at::Tensor & max_outf(const at::Tensor & self, at::Tensor & out) {
78 return at::_ops::max_unary_out::call(self, out);
79}
80
81}
82