Skip to content

Commit 8368f3c

Browse files
Lint
1 parent b394e8e commit 8368f3c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,13 @@ void deformable_im2col(
244244
}
245245

246246
int get_greatest_divisor_below_bound(int n, int bound) {
247-
int limit = std::min(n/2, bound);
248-
for (int k = limit; k > 1; --k) {
249-
if (n % k == 0) {
250-
return k;
251-
}
247+
int limit = std::min(n / 2, bound);
248+
for (int k = limit; k > 1; --k) {
249+
if (n % k == 0) {
250+
return k;
252251
}
253-
return 1;
252+
}
253+
return 1;
254254
}
255255

256256
template <typename scalar_t>

torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void deformable_im2col(
305305
}
306306

307307
int get_greatest_divisor_below_bound(int n, int bound) {
308-
int limit = std::min(n/2, bound);
308+
int limit = std::min(n / 2, bound);
309309
for (int k = limit; k > 1; --k) {
310310
if (n % k == 0) {
311311
return k;

0 commit comments

Comments
 (0)