mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
Update README.md
This commit is contained in:
@@ -87,7 +87,7 @@ class CoolModel(pl.LightningModule):
|
|||||||
y_hat = self.forward(x)
|
y_hat = self.forward(x)
|
||||||
return {'loss': F.cross_entropy(y_hat, y)}
|
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
|
# OPTIONAL
|
||||||
x, y = batch
|
x, y = batch
|
||||||
y_hat = self.forward(x)
|
y_hat = self.forward(x)
|
||||||
|
|||||||
Reference in New Issue
Block a user