Skip to content

Error occurs in out-loop backward #18

@dieuroi

Description

@dieuroi

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation

I think the backward operation in train_one_batch (line 308 in transformer.py) has freed the graph, while this does not disturb the out-loop backward.

The error occurs when batch_loss.backward() (line 167 in MAML.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions