Skip to content

Why reain_graph is needed here ? #96

Description

@LeoniusChen

Hi, I read the GAN code and I have the confusion that why the retain_graph is needed here ?

D_loss.backward(retain_graph=True) # reusing computational graph

The computation graph of discriminator should not be released ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions