Skip to content

Commit 055a62c

Browse files
code optimization
1 parent b76ca1a commit 055a62c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GAN/WGAN/training.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def training(opt):
139139

140140
# ~~~~~~~~~~~~~~~~~~~ loss ~~~~~~~~~~~~~~~~~~~ #
141141

142-
C_loss = -(torch.mean(real_predict) - torch.mean(fake_predict))
142+
C_loss = -(torch.mean(fake_predict) - torch.mean(real_predict))
143143
C_loss_avg += C_loss
144144

145145
# ~~~~~~~~~~~~~~~~~~~ backward ~~~~~~~~~~~~~~~~~~~ #

0 commit comments

Comments
 (0)