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/unsafe_split_ops.h> |
21 | |
22 | namespace at { |
23 | |
24 | |
25 | // aten::unsafe_split.Tensor(Tensor self, SymInt split_size, int dim=0) -> Tensor[] |
26 | inline ::std::vector<at::Tensor> unsafe_split(const at::Tensor & self, int64_t split_size, int64_t dim=0) { |
27 | return at::_ops::unsafe_split_Tensor::call(self, split_size, dim); |
28 | } |
29 | namespace symint { |
30 | template <typename T, typename = std::enable_if_t<std::is_same<T, int64_t>::value>> |
31 | ::std::vector<at::Tensor> unsafe_split(const at::Tensor & self, int64_t split_size, int64_t dim=0) { |
32 | return at::_ops::unsafe_split_Tensor::call(self, split_size, dim); |
33 | } |
34 | } |
35 | |
36 | // aten::unsafe_split.Tensor(Tensor self, SymInt split_size, int dim=0) -> Tensor[] |
37 | inline ::std::vector<at::Tensor> unsafe_split_symint(const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { |
38 | return at::_ops::unsafe_split_Tensor::call(self, split_size, dim); |
39 | } |
40 | namespace symint { |
41 | template <typename T, typename = std::enable_if_t<std::is_same<T, c10::SymInt>::value>> |
42 | ::std::vector<at::Tensor> unsafe_split(const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { |
43 | return at::_ops::unsafe_split_Tensor::call(self, split_size, dim); |
44 | } |
45 | } |
46 | |
47 | // aten::unsafe_split.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () |
48 | inline void unsafe_split_out(at::TensorList out, const at::Tensor & self, int64_t split_size, int64_t dim=0) { |
49 | return at::_ops::unsafe_split_Tensor_out::call(self, split_size, dim, out); |
50 | } |
51 | namespace symint { |
52 | template <typename T, typename = std::enable_if_t<std::is_same<T, int64_t>::value>> |
53 | void unsafe_split_out(at::TensorList out, const at::Tensor & self, int64_t split_size, int64_t dim=0) { |
54 | return at::_ops::unsafe_split_Tensor_out::call(self, split_size, dim, out); |
55 | } |
56 | } |
57 | |
58 | // aten::unsafe_split.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () |
59 | inline void unsafe_split_outf(const at::Tensor & self, int64_t split_size, int64_t dim, at::TensorList out) { |
60 | return at::_ops::unsafe_split_Tensor_out::call(self, split_size, dim, out); |
61 | } |
62 | namespace symint { |
63 | template <typename T, typename = std::enable_if_t<std::is_same<T, int64_t>::value>> |
64 | void unsafe_split_outf(const at::Tensor & self, int64_t split_size, int64_t dim, at::TensorList out) { |
65 | return at::_ops::unsafe_split_Tensor_out::call(self, split_size, dim, out); |
66 | } |
67 | } |
68 | |
69 | // aten::unsafe_split.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () |
70 | inline void unsafe_split_symint_out(at::TensorList out, const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { |
71 | return at::_ops::unsafe_split_Tensor_out::call(self, split_size, dim, out); |
72 | } |
73 | namespace symint { |
74 | template <typename T, typename = std::enable_if_t<std::is_same<T, c10::SymInt>::value>> |
75 | void unsafe_split_out(at::TensorList out, const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { |
76 | return at::_ops::unsafe_split_Tensor_out::call(self, split_size, dim, out); |
77 | } |
78 | } |
79 | |
80 | // aten::unsafe_split.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () |
81 | inline void unsafe_split_symint_outf(const at::Tensor & self, c10::SymInt split_size, int64_t dim, at::TensorList out) { |
82 | return at::_ops::unsafe_split_Tensor_out::call(self, split_size, dim, out); |
83 | } |
84 | namespace symint { |
85 | template <typename T, typename = std::enable_if_t<std::is_same<T, c10::SymInt>::value>> |
86 | void unsafe_split_outf(const at::Tensor & self, c10::SymInt split_size, int64_t dim, at::TensorList out) { |
87 | return at::_ops::unsafe_split_Tensor_out::call(self, split_size, dim, out); |
88 | } |
89 | } |
90 | |
91 | } |
92 | |