Skip to content

Commit

Permalink
conv layer dim
Browse files Browse the repository at this point in the history
  • Loading branch information
namsaraeva committed May 17, 2024
1 parent 51fabaf commit 45ee884
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions src/sparcscore/ml/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ def make_layers_MLP(self, cfg_MLP, cfg, regression = False):
nn.Sequential: A sequential model representing the MLP architecture.
"""
# get output feature size of CNN with chosen configuration
if regression:
in_features = int(cfg[-2]) * 4 * 4
else:
in_features = int(cfg[-2]) * 2 * 2
in_features = int(cfg[-2]) * 2 * 2

layers = []
i = 0
Expand Down
2 changes: 0 additions & 2 deletions src/sparcscore/ml/plmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ def training_step(self, batch):
def validation_step(self, batch):
data, target = batch
target = target.unsqueeze(1)
print("target val ", target)

output = self.network(data)
loss = F.mse_loss(output, target)

Expand Down

0 comments on commit 45ee884

Please sign in to comment.