Skip to content

Commit

Permalink
do not merge: hack scripting to get it to work
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMelt committed Feb 5, 2025
1 parent 67cad7c commit c389d75
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/model_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ def __init__(self, idim, odim, hdim, stencil, dropout=0.0):
self.output = nn.Linear(2 * odim, odim)

def forward(self, x):
if self.fac == 1:
x = torch.squeeze(self.dropout0(self.act_cnn(self.conv1(x))))
elif self.fac == 2:
x = torch.squeeze(self.dropout0(self.act_cnn(self.conv1(x))))
x = torch.squeeze(self.dropout0_2(self.act_cnn2(self.conv2(x))))
# if self.fac == 1:
# x = torch.squeeze(self.dropout0(self.act_cnn(self.conv1(x))))
# elif self.fac == 2:
# x = torch.squeeze(self.dropout0(self.act_cnn(self.conv1(x))))
# x = torch.squeeze(self.dropout0_2(self.act_cnn2(self.conv2(x))))

# print(f'new shape: {x.shape}')
x = self.dropout(self.act1(self.layer1(x)))
Expand Down

0 comments on commit c389d75

Please sign in to comment.