mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-25 12:50:57 +08:00
Update RequiredTrainerInterface.md
This commit is contained in:
1 parent
4f0cf1e970
commit
ea76ad2b28
1 file changed
+1
-1
@@ -52,7 +52,7 @@ class CoolModel(pl.LightningModule):
|
||||
y_hat = self.forward(x)
|
||||
return {'loss': F.cross_entropy(y_hat, y)(y_hat, y)}
|
||||
|
||||
def validation_step(self, batch, batch_nb):
|
||||
def validation_step(self, batch, batch_nb, dataloader_i):
|
||||
# OPTIONAL
|
||||
x, y = batch
|
||||
y_hat = self.forward(x)
|
||||
|
||||
Reference in new issue
Block a user