We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5401b9 commit f02caa5Copy full SHA for f02caa5
torchvision/models/shufflenetv2.py
@@ -35,7 +35,7 @@ def channel_shuffle(x: Tensor, groups: int) -> Tensor:
35
x = torch.transpose(x, 1, 2).contiguous()
36
37
# flatten
38
- x = x.view(batchsize, -1, height, width)
+ x = x.view(batchsize, num_channels, height, width)
39
40
return x
41
0 commit comments