Skip to content

Commit f2f085b

Browse files
authored
Fix C++ lint (#2041)
1 parent 7499851 commit f2f085b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torchvision/csrc/cpu/DeformConv_cpu.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ at::Tensor DeformConv2d_forward_cpu(
392392
.addmm_(weight[g].flatten(1), columns[g])
393393
.view_as(out_buf[b][g]);
394394
}
395-
columns = columns.view(
396-
{columns.size(0) * columns.size(1), columns.size(2)});
395+
columns =
396+
columns.view({columns.size(0) * columns.size(1), columns.size(2)});
397397
}
398398

399399
out_buf = out_buf.view({batch_sz / n_parallel_imgs,
@@ -751,7 +751,7 @@ static std::tuple<at::Tensor, at::Tensor> deform_conv2d_backward_input_cpu(
751751
weight.size(1),
752752
weight.size(2),
753753
weight.size(3)});
754-
754+
755755
for (int elt = 0; elt < batch_sz / n_parallel_imgs; elt++) {
756756
// Separate into weight groups
757757
columns = columns.view(

0 commit comments

Comments
 (0)