Skip to content

Commit 25ce830

Browse files
authored
Update main.py
1 parent 6b5af87 commit 25ce830

File tree

1 file changed

+1
-1
lines changed
  • tutorials/11 - Deep Convolutional Generative Adversarial Network

1 file changed

+1
-1
lines changed

tutorials/11 - Deep Convolutional Generative Adversarial Network/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def forward(self, x):
102102

103103
noise = Variable(torch.randn(images.size(0), 128))
104104
fake_images = generator(noise)
105-
outputs = discriminator(fake_images.detch())
105+
outputs = discriminator(fake_images.detach())
106106
fake_loss = criterion(outputs, fake_labels)
107107
fake_score = outputs
108108

0 commit comments

Comments
 (0)