Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACON Activation batch-size 1 bug patch #2901

Merged
merged 5 commits into from
Apr 25, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update activations.py
  • Loading branch information
glenn-jocher committed Apr 25, 2021
commit da431dd68f4584a02ce1fe93947aa5fc5486e654
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