8000 fix tabs and spaces · pytorch/pytorch@1343234 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1343234

Browse files
committed
fix tabs and spaces
1 parent b4a2d9a commit 1343234

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aten/src/ATen/native/cuda/UnaryFractionKernels.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void reciprocal_kernel_cuda(TensorIteratorBase& iter) {
111111
};
112112

113113
auto either_inf = [](T real, T imag) {
114-
return ::isinf(real) || ::isinf(imag);
114+
return ::isinf(real) || ::isinf(imag);
115115
};
116116

117117
auto either_nan = [](T real, T imag) {
@@ -121,7 +121,7 @@ void reciprocal_kernel_cuda(TensorIteratorBase& iter) {
121121
if (either_nan(v.real(), v.imag()) || both_inf(v.real(), v.imag())) {
122122
// If either is Nan or both are infinite, return {nan, nan}
123123
return {std::numeric_limits<T>::quiet_NaN(), std::numeric_limits<T>::quiet_NaN()};
124-
} else if (either_inf(v.real(), v.imag())) {
124+
} else if (either_inf(v.real(), v.imag())) {
125125
// If either is Inf, return {0, 0}
126126
return {0, 0};
127127
}
@@ -143,7 +143,7 @@ void reciprocal_kernel_cuda(TensorIteratorBase& iter) {
143143
});
144144
});
145145
#endif
146-
} else {
146+
} else {
147147
AT_DISPATCH_FLOATING_TYPES_AND2(
148148
ScalarType::Half, ScalarType::BFloat16,
149149
dtype, "reciprocal_cuda",

0 commit comments

Comments
 (0)
0