yunjey / pytorch-tutorial

PyTorch Tutorial for Deep Learning Researchers
MIT License
30.13k stars 8.12k forks source link

Some questions about GAN code #145

Open jindongwang opened 5 years ago

jindongwang commented 5 years ago

In the GAN code, why L98 is repeated in L115? I tried to delete L115, it works fine. Is there something I miss?

OrangeC93 commented 4 years ago

@jindongwang It does not repeat. These two lines generate different random tensors. One is for training discriminator, the other is for training generator.