PyTorch-Tutorial icon indicating copy to clipboard operation
PyTorch-Tutorial copied to clipboard

Why reain_graph is needed here ?

Open LeoniusChen opened this issue 4 years ago • 1 comments

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 ?

LeoniusChen avatar Feb 08 '21 08:02 LeoniusChen

have the same doubts.

yangquanli avatar Apr 23 '21 03:04 yangquanli