Update src/model.py
Browse files- src/model.py +1 -1
src/model.py
CHANGED
|
@@ -3,7 +3,7 @@ def C(n_in, n_out, **kwargs):
|
|
| 3 |
return nn.Conv2d(n_in, n_out, 3, padding=1, **kwargs)
|
| 4 |
class Clamp(nn.Module):
|
| 5 |
def forward(self, x):
|
| 6 |
-
return
|
| 7 |
class B(nn.Module):
|
| 8 |
def __init__(self, n_in, n_out):
|
| 9 |
super().__init__()
|
|
|
|
| 3 |
return nn.Conv2d(n_in, n_out, 3, padding=1, **kwargs)
|
| 4 |
class Clamp(nn.Module):
|
| 5 |
def forward(self, x):
|
| 6 |
+
return t.tanh(x / 3) * 3
|
| 7 |
class B(nn.Module):
|
| 8 |
def __init__(self, n_in, n_out):
|
| 9 |
super().__init__()
|