Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
namsaraeva committed May 16, 2024
1 parent f44f914 commit 5b21fd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/sparcscore/ml/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ def vgg(cfg, in_channels, **kwargs):
return model

def forward(self, x):
print("x shape: ", x.shape)
x = self.norm(x)
x = self.features(x)

Expand Down
4 changes: 1 addition & 3 deletions src/sparcscore/ml/plmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ def configure_optimizers(self):

def training_step(self, batch):
data, target = batch
print("Training data shape: ", data.shape)
print("Batch size: ", data.size(0))


output = self.network(data) # Forward pass, only one output
loss = F.mse_loss(output, target) # L2 loss

Expand Down

0 comments on commit 5b21fd0

Please sign in to comment.