Skip to content

Commit

Permalink
Update modules.py
Browse files Browse the repository at this point in the history
fix  at least one dimension spans across two contiguous subspaces
  • Loading branch information
darkliang authored Nov 15, 2022
1 parent 6e843db commit c5b4fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opengait/modeling/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def forward(self, x, *args, **kwargs):
"""
n, c, s, h, w = x.size()
x = self.forward_block(x.transpose(
1, 2).view(-1, c, h, w), *args, **kwargs)
1, 2).reshape(-1, c, h, w), *args, **kwargs)
output_size = x.size()
return x.reshape(n, s, *output_size[1:]).transpose(1, 2).contiguous()

Expand Down

0 comments on commit c5b4fb0

Please sign in to comment.