Update main.py

This commit is contained in:
yunjey
2017-04-23 22:58:37 +09:00
committed by GitHub
parent 6b5af87309
commit 25ce8300ce

View File

@ -102,7 +102,7 @@ for epoch in range(50):
noise = Variable(torch.randn(images.size(0), 128)) noise = Variable(torch.randn(images.size(0), 128))
fake_images = generator(noise) fake_images = generator(noise)
outputs = discriminator(fake_images.detch()) outputs = discriminator(fake_images.detach())
fake_loss = criterion(outputs, fake_labels) fake_loss = criterion(outputs, fake_labels)
fake_score = outputs fake_score = outputs