mirror of
https://github.com/KaiyangZhou/deep-person-reid.git
synced 2025-06-03 14:53:23 +08:00
fixed division error: / -> //
This commit is contained in:
parent
9726b8bb96
commit
81d3cc3995
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user