Skip to content

RuntimeError: leaf variable has been moved into the graph interior #6

@reBiocoder

Description

@reBiocoder

Hi:
while running loss.backward(), found error: RuntimeError: leaf variable has been moved into the graph interior, i try to edit loss = 0 line168 in main.py to tensor, but i fail, please help!
env:
python3.6,
torch0.4.1

thx

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