@@ -64,124 +64,4 @@ Tensor gather_cpu(const Tensor & self, int64_t dim, const Tensor & index, bool s
6464 return legacy::cpu::_th_gather (self, dim, index);
6565}
6666
67- Tensor & lt_out_cpu (Tensor & result, const Tensor & self, const Tensor & other) {
68- if (result.dtype () == at::ScalarType::Byte) {
69- AT_WARN (" torch.lt received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
70- " please use 'out' parameter with dtype torch.bool instead." );
71- return legacy::cpu::_th_lt_byte_out (result, self, other);
72- } else {
73- return legacy::cpu::_th_lt_out (result, self, other);
74- }
75- }
76-
77- Tensor & lt_scalar_out_cpu (Tensor & result, const Tensor & self, const Scalar value) {
78- if (result.dtype () == at::ScalarType::Byte) {
79- AT_WARN (" torch.lt received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
80- " please use 'out' parameter with dtype torch.bool instead." );
81- return legacy::cpu::_th_lt_byte_out (result, self, value);
82- } else {
83- return legacy::cpu::_th_lt_out (result, self, value);
84- }
85- }
86-
87- Tensor & le_out_cpu (Tensor & result, const Tensor & self, const Tensor & other) {
88- if (result.dtype () == at::ScalarType::Byte) {
89- AT_WARN (" torch.le received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
90- " please use 'out' parameter with dtype torch.bool instead." );
91- return legacy::cpu::_th_le_byte_out (result, self, other);
92- } else {
93- return legacy::cpu::_th_le_out (result, self, other);
94- }
95- }
96-
97- Tensor & le_scalar_out_cpu (Tensor & result, const Tensor & self, const Scalar value) {
98- if (result.dtype () == at::ScalarType::Byte) {
99- AT_WARN (" torch.le received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
100- " please use 'out' parameter with dtype torch.bool instead." );
101- return legacy::cpu::_th_le_byte_out (result, self, value);
102- } else {
103- return legacy::cpu::_th_le_out (result, self, value);
104- }
105- }
106-
107- Tensor & gt_out_cpu (Tensor & result, const Tensor & self, const Tensor & other) {
108- if (result.dtype () == at::ScalarType::Byte) {
109- AT_WARN (" torch.gt received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
110- " please use 'out' parameter with dtype torch.bool instead." );
111- return legacy::cpu::_th_gt_byte_out (result, self, other);
112- } else {
113- return legacy::cpu::_th_gt_out (result, self, other);
114- }
115- }
116-
117- Tensor & gt_scalar_out_cpu (Tensor & result, const Tensor & self, const Scalar value) {
118- if (result.dtype () == at::ScalarType::Byte) {
119- AT_WARN (" torch.gt received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
120- " please use 'out' parameter with dtype torch.bool instead." );
121- return legacy::cpu::_th_gt_byte_out (result, self, value);
122- } else {
123- return legacy::cpu::_th_gt_out (result, self, value);
124- }
125- }
126-
127- Tensor & ge_out_cpu (Tensor & result, const Tensor & self, const Tensor & other) {
128- if (result.dtype () == at::ScalarType::Byte) {
129- AT_WARN (" torch.ge received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
130- " please use 'out' parameter with dtype torch.bool instead." );
131- return legacy::cpu::_th_ge_byte_out (result, self, other);
132- } else {
133- return legacy::cpu::_th_ge_out (result, self, other);
134- }
135- }
136-
137- Tensor & ge_scalar_out_cpu (Tensor & result, const Tensor & self, const Scalar value) {
138- if (result.dtype () == at::ScalarType::Byte) {
139- AT_WARN (" torch.ge received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
140- " please use 'out' parameter with dtype torch.bool instead." );
141- return legacy::cpu::_th_ge_byte_out (result, self, value);
142- } else {
143- return legacy::cpu::_th_ge_out (result, self, value);
144- }
145- }
146-
147- Tensor & eq_out_cpu (Tensor & result, const Tensor & self, const Tensor & other) {
148- if (result.dtype () == at::ScalarType::Byte) {
149- AT_WARN (" torch.eq received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
150- " please use 'out' parameter with dtype torch.bool instead." );
151- return legacy::cpu::_th_eq_byte_out (result, self, other);
152- } else {
153- return legacy::cpu::_th_eq_out (result, self, other);
154- }
155- }
156-
157- Tensor & eq_scalar_out_cpu (Tensor & result, const Tensor & self, const Scalar value) {
158- if (result.dtype () == at::ScalarType::Byte) {
159- AT_WARN (" torch.eq received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
160- " please use 'out' parameter with dtype torch.bool instead." );
161- return legacy::cpu::_th_eq_byte_out (result, self, value);
162- } else {
163- return legacy::cpu::_th_eq_out (result, self, value);
164- }
165- }
166-
167- Tensor & ne_out_cpu (Tensor & result, const Tensor & self, const Tensor & other) {
168- if (result.dtype () == at::ScalarType::Byte) {
169- AT_WARN (" torch.ne received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
170- " please use 'out' parameter with dtype torch.bool instead." );
171- return legacy::cpu::_th_ne_byte_out (result, self, other);
172- } else {
173- return legacy::cpu::_th_ne_out (result, self, other);
174- }
175- }
176-
177- Tensor & ne_scalar_out_cpu (Tensor & result, const Tensor & self, const Scalar value) {
178- if (result.dtype () == at::ScalarType::Byte) {
179- AT_WARN (" torch.ne received 'out' parameter with dtype torch.uint8, this behavior is now deprecated," \
180- " please use 'out' parameter with dtype torch.bool instead." );
181- return legacy::cpu::_th_ne_byte_out (result, self, value);
182- } else {
183- return legacy::cpu::_th_ne_out (result, self, value);
184- }
185- }
186-
18767}} // namespace at::native
0 commit comments