Skip to content

Why reain_graph is needed here ? #96

@LeoniusChen

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 ?

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