We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f9200 commit 6c00b9eCopy full SHA for 6c00b9e
pl_examples/bug_report_model.py
@@ -79,7 +79,7 @@ def loss(self, batch, prediction):
79
# An arbitrary loss to have a loss that updates the model weights during `Trainer.fit` calls
80
return torch.nn.functional.mse_loss(prediction, torch.ones_like(prediction))
81
82
- def _step(self, x):
+ def step(self, x):
83
x = self.layer(x)
84
out = torch.nn.functional.mse_loss(x, torch.ones_like(x))
85
return out
0 commit comments