Hi, I read the GAN code and I have the confusion that why the retain_graph is needed here ? https://github.com/MorvanZhou/PyTorch-Tutorial/blob/4e5122c3734dcdc9ace164c2a87fbd412ca1d431/tutorial-contents/406_GAN.py#L71 The computation graph of discriminator should not be released ?
Hi, I read the GAN code and I have the confusion that why the retain_graph is needed here ?
PyTorch-Tutorial/tutorial-contents/406_GAN.py
Line 71 in 4e5122c
The computation graph of discriminator should not be released ?