镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Why reain_graph is needed here ? #96

Open

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

  1. yangquanli commented on Apr 23, 2021

    @yangquanli

    have the same doubts.

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