Closed fungtion closed 7 years ago
I'm new to the GAN, what I understand about it is that netG and netD should be optimized alternatively,but I cannot find netG.parameters.requires_grad = False when updating netD, I get confused about it.
netG.parameters.requires_grad = False
You freeze the netG when train netD
@kunrenzhilu I see, setting Variable volatile=True means netG.parameters.requires_grad = False
volatile=True
I'm new to the GAN, what I understand about it is that netG and netD should be optimized alternatively,but I cannot find
netG.parameters.requires_grad = False
when updating netD, I get confused about it.