Update README.md

This commit is contained in:
William Falcon
2019-08-13 06:42:25 -04:00
committed by GitHub
parent 190a3a9260
commit 6f3152bcd6
+1 -1
View File
@@ -91,7 +91,7 @@ class CoolModel(pl.LightningModule):
# OPTIONAL
x, y = batch
y_hat = self.forward(x)
return {'val_loss': self.my_loss(y_hat, y)}
return {'val_loss': F.cross_entropy(y_hat, y)}
def validation_end(self, outputs):
# OPTIONAL