Skip to content

Commit 17d893f

Browse files
committed
fix train.py
1 parent 46c9d5f commit 17d893f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
y = batch[1].to(device, dtype=dtype)
193193

194194
y_hat = model(x)
195-
loss = sum(loss(y_hat, up_y) for loss in loss_fn)
195+
loss = sum(loss(y_hat, y) for loss in loss_fn)
196196
loss.backward()
197197

198198
# batch_disc = torch.cat([y, y_hat], dim=0)

0 commit comments

Comments
 (0)