Skip to content

Commit

Permalink
Update activations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Apr 25, 2021
1 parent 05272e3 commit da431dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/activations.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def __init__(self, c1, k=1, s=1, r=16): # ch_in, kernel, stride, r
self.p2 = nn.Parameter(torch.randn(1, c1, 1, 1))
self.fc1 = nn.Conv2d(c1, c2, k, s, bias=False)
self.fc2 = nn.Conv2d(c2, c1, k, s, bias=False)
# self.bn2 = nn.BatchNorm2d(c1)
# self.bn1 = nn.BatchNorm2d(c2)
# self.bn2 = nn.BatchNorm2d(c1)

def forward(self, x):
y = x.mean(dim=2, keepdims=True).mean(dim=3, keepdims=True)
Expand Down

0 comments on commit da431dd

Please sign in to comment.