Skip to content

Commit

Permalink
add batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
namsaraeva committed May 16, 2024
1 parent 066f1ff commit f44f914
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sparcscore/ml/plmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,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 f44f914

Please sign in to comment.