Skip to content

second time backward error #6

@Neronjust2017

Description

@Neronjust2017

Hi Fengchun,

After I download and process MNIST dataset and run "main_Digits.py", I got the following error: "RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time". Could tell me what happens here? And when I specify retain_graph=True, this error dispeared. Is this an error in your code? or someting else caused this error?

Thanks!

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