Skip to content

Commit

Permalink
Update ghostnetv2_torch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yehuitang authored Dec 23, 2022
1 parent cd37d1b commit 860e89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghostnetv2_pytorch/model/ghostnetv2_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def forward(self, x):
x1 = self.primary_conv(x)
x2 = self.cheap_operation(x1)
out = torch.cat([x1,x2], dim=1)
return out[:,:self.oup,:,:]*F.interpolate(self.gate_fn(res),size=out.shape[-1],mode='nearest')
return out[:,:self.oup,:,:]*F.interpolate(self.gate_fn(res),size=(out.shape[-2],out.shape[-1]),mode='nearest')


class GhostBottleneckV2(nn.Module):
Expand Down

0 comments on commit 860e89a

Please sign in to comment.