manbeast3b commited on
Commit
68d3c82
·
verified ·
1 Parent(s): 447b1a5

Update src/model.py

Browse files
Files changed (1) hide show
  1. 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 torch.tanh(x / 3) * 3
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__()