In the GAN example, while training the D-network on fake data there is the line:
output = netD(fake.detach())
Q. What is the detach operation doing?
Q. This operation is not used in the Wasserstien GAN code. Why is it not needed in this model?
Q. Is the same effect being obtained by:
noisev = Variable(noise, volatile = True) # totally freeze netG
Thanks in advance,