glenn-jocher
commited on
Commit
•
c889267
1
Parent(s):
131782a
Funnel ReLU (FReLU) @staticmethod bug fix (#556)
Browse filesSigned-off-by: Glenn Jocher <[email protected]>
- utils/activations.py +0 -1
utils/activations.py
CHANGED
@@ -69,6 +69,5 @@ class FReLU(nn.Module):
|
|
69 |
self.conv = nn.Conv2d(c1, c1, k, 1, 1, groups=c1)
|
70 |
self.bn = nn.BatchNorm2d(c1)
|
71 |
|
72 |
-
@staticmethod
|
73 |
def forward(self, x):
|
74 |
return torch.max(x, self.bn(self.conv(x)))
|
|
|
69 |
self.conv = nn.Conv2d(c1, c1, k, 1, 1, groups=c1)
|
70 |
self.bn = nn.BatchNorm2d(c1)
|
71 |
|
|
|
72 |
def forward(self, x):
|
73 |
return torch.max(x, self.bn(self.conv(x)))
|