parent
0cec613c07
commit
1934760056
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue