mirror of
https://github.com/yunjey/pytorch-tutorial.git
synced 2025-07-28 12:44:00 +08:00
Update main.py
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user