Skip to content

Commit

Permalink
Update vanillanet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HantingChen authored May 25, 2023
1 parent f8385cf commit 2a02a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/vanillanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def forward(self, x):
else:
return self.bn(torch.nn.functional.conv2d(
super(activation, self).forward(x),
self.weight, padding=(self.act_num*2 + 1)//2, groups=self.dim))
self.weight, padding=self.act_num, groups=self.dim))

def _fuse_bn_tensor(self, weight, bn):
kernel = weight
Expand Down

0 comments on commit 2a02a70

Please sign in to comment.