@@ -321,14 +321,14 @@ TORCH_META_FUNC(tanh_backward) (const Tensor& grad_output, const Tensor& output)
321
321
build_borrowing_binary_op (maybe_get_output (), self, other); \
322
322
}
323
323
324
- CREATE_BINARY_META_FUNC (logaddexp);
325
- CREATE_BINARY_META_FUNC (logaddexp2);
326
- CREATE_BINARY_META_FUNC (gcd);
327
- CREATE_BINARY_META_FUNC (lcm);
328
- CREATE_BINARY_META_FUNC (hypot);
329
- CREATE_BINARY_META_FUNC (igamma);
330
- CREATE_BINARY_META_FUNC (igammac);
331
- CREATE_BINARY_META_FUNC (nextafter);
324
+ CREATE_BINARY_META_FUNC (logaddexp)
325
+ CREATE_BINARY_META_FUNC (logaddexp2)
326
+ CREATE_BINARY_META_FUNC (gcd)
327
+ CREATE_BINARY_META_FUNC (lcm)
328
+ CREATE_BINARY_META_FUNC (hypot)
329
+ CREATE_BINARY_META_FUNC (igamma)
330
+ CREATE_BINARY_META_FUNC (igammac)
331
+ CREATE_BINARY_META_FUNC (nextafter)
332
332
333
333
TORCH_META_FUNC (maximum) (const Tensor& self, const Tensor& other) {
334
334
TORCH_CHECK (!self.is_complex () && !other.is_complex (), " maximum not implemented for complex tensors." );
@@ -362,12 +362,12 @@ TORCH_META_FUNC(fmin) (const Tensor& self, const Tensor& other) {
362
362
build_borrowing_except_last_argument_comparison_op (maybe_get_output (), self, other_tensor); \
363
363
}
364
364
365
- CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (eq);
366
- CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (ne);
367
- CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (lt);
368
- CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (le);
369
- CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (gt);
370
- CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (ge);
365
+ CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (eq)
366
+ CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (ne)
367
+ CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (lt)
368
+ CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (le)
369
+ CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (gt)
370
+ CREATE_COMPARISON_SCALAR_TENSOR_META_FUNC (ge)
371
371
372
372
} // namespace at::meta
373
373
@@ -532,24 +532,24 @@ TORCH_IMPL_FUNC(func_out) (const Tensor& self, const Tensor& other, const Tensor
532
532
func_stub (device_type (), *this ); \
533
533
}
534
534
535
- CREATE_BINARY_TORCH_IMPL_FUNC (bitwise_and_out, bitwise_and_stub);
536
- CREATE_BINARY_TORCH_IMPL_FUNC (bitwise_or_out, bitwise_or_stub);
537
- CREATE_BINARY_TORCH_IMPL_FUNC (bitwise_xor_out, bitwise_xor_stub);
538
- CREATE_BINARY_TORCH_IMPL_FUNC (maximum_out, maximum_stub);
539
- CREATE_BINARY_TORCH_IMPL_FUNC (minimum_out, minimum_stub);
540
- CREATE_BINARY_TORCH_IMPL_FUNC (fmax_out, fmax_stub);
541
- CREATE_BINARY_TORCH_IMPL_FUNC (fmin_out, fmin_stub);
542
- CREATE_BINARY_TORCH_IMPL_FUNC (fmod_out, fmod_stub);
543
- CREATE_BINARY_TORCH_IMPL_FUNC (logaddexp_out, logaddexp_stub);
544
- CREATE_BINARY_TORCH_IMPL_FUNC (logaddexp2_out, logaddexp2_stub);
545
- CREATE_BINARY_TORCH_IMPL_FUNC (gcd_out, gcd_stub);
546
- CREATE_BINARY_TORCH_IMPL_FUNC (lcm_out, lcm_stub);
547
- CREATE_BINARY_TORCH_IMPL_FUNC (hypot_out, hypot_stub);
548
- CREATE_BINARY_TORCH_IMPL_FUNC (igamma_out, igamma_stub);
549
- CREATE_BINARY_TORCH_IMPL_FUNC (igammac_out, igammac_stub);
550
- CREATE_BINARY_TORCH_IMPL_FUNC (nextafter_out, nextafter_stub);
551
- CREATE_BINARY_TORCH_IMPL_FUNC (remainder_out, remainder_stub);
552
- CREATE_BINARY_TORCH_IMPL_FUNC (xlogy_out, xlogy_stub);
535
+ CREATE_BINARY_TORCH_IMPL_FUNC (bitwise_and_out, bitwise_and_stub)
536
+ CREATE_BINARY_TORCH_IMPL_FUNC (bitwise_or_out, bitwise_or_stub)
537
+ CREATE_BINARY_TORCH_IMPL_FUNC (bitwise_xor_out, bitwise_xor_stub)
538
+ CREATE_BINARY_TORCH_IMPL_FUNC (maximum_out, maximum_stub)
539
+ CREATE_BINARY_TORCH_IMPL_FUNC (minimum_out, minimum_stub)
540
+ CREATE_BINARY_TORCH_IMPL_FUNC (fmax_out, fmax_stub)
541
+ CREATE_BINARY_TORCH_IMPL_FUNC (fmin_out, fmin_stub)
542
+ CREATE_BINARY_TORCH_IMPL_FUNC (fmod_out, fmod_stub)
543
+ CREATE_BINARY_TORCH_IMPL_FUNC (logaddexp_out, logaddexp_stub)
544
+ CREATE_BINARY_TORCH_IMPL_FUNC (logaddexp2_out, logaddexp2_stub)
545
+ CREATE_BINARY_TORCH_IMPL_FUNC (gcd_out, gcd_stub)
546
+ CREATE_BINARY_TORCH_IMPL_FUNC (lcm_out, lcm_stub)
547
+ CREATE_BINARY_TORCH_IMPL_FUNC (hypot_out, hypot_stub)
548
+ CREATE_BINARY_TORCH_IMPL_FUNC (igamma_out, igamma_stub)
549
+ CREATE_BINARY_TORCH_IMPL_FUNC (igammac_out, igammac_stub)
550
+ CREATE_BINARY_TORCH_IMPL_FUNC (nextafter_out, nextafter_stub)
551
+ CREATE_BINARY_TORCH_IMPL_FUNC (remainder_out, remainder_stub)
552
+ CREATE_BINARY_TORCH_IMPL_FUNC (xlogy_out, xlogy_stub)
553
553
554
554
Tensor special_xlog1py (const Scalar& x, const Tensor& y) {
555
555
return at::special_xlog1py (wrapped_scalar_tensor (x), y);
@@ -1462,12 +1462,12 @@ Tensor& greater_equal_(Tensor& self, const Scalar& other) { return self.ge_(othe
1462
1462
func##_stub (device_type (), *this ); \
1463
1463
}
1464
1464
1465
- CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (eq);
1466
- CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (ne);
1467
- CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (gt);
1468
- CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (ge);
1469
- CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (lt);
1470
- CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (le);
1465
+ CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (eq)
1466
+ CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (ne)
1467
+ CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (gt)
1468
+ CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (ge)
1469
+ CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (lt)
1470
+ CREATE_COMPARISON_SCALAR_TENSOR_IMPL_FUNC (le)
1471
1471
1472
1472
// not_equal, alias for torch.ne
1473
1473
Tensor& not_equal_out (const Tensor& self, const Tensor& other, Tensor& result) { return at::ne_out (result, self, other); }
0 commit comments