mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-25 12:50:57 +08:00
Update README.md
This commit is contained in:
1 parent
ea76ad2b28
commit
190a3a9260
1 file changed
+1
-1
@@ -87,7 +87,7 @@ class CoolModel(pl.LightningModule):
|
||||
y_hat = self.forward(x)
|
||||
return {'loss': F.cross_entropy(y_hat, y)}
|
||||
|
||||
def validation_step(self, batch, batch_nb, dataset_i):
|
||||
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