Update train.py

Doc fix
This commit is contained in:
Karthik Venkataramani 2024-02-13 09:41:48 -08:00 committed by GitHub
parent 0cec613c07
commit 1934760056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class LitAutoEncoder(pl.LightningModule):
x = x.view(x.size(0), -1)
z = self.encoder(x)
x_hat = self.decoder(z)
loss = F.mse_loss(x_hat, x)
loss = F.mse_loss(x_hat, y)
self.log("train_loss", loss)
return loss