fixed division error: / -> //

This commit is contained in:
KaiyangZhou 2018-11-05 21:30:40 +00:00
parent 9726b8bb96
commit 81d3cc3995

View File

@ -17,7 +17,7 @@ class ChannelShuffle(nn.Module):
def forward(self, x):
b, c, h, w = x.size()
n = c / self.g
n = c // self.g
# reshape
x = x.view(b, self.g, n, h, w)
# transpose