Skip to content

When I run 'Proto'_ MAML ', an error occurred in the code, #2

Description

@aosodofogo

RuntimeError: One of the differentiated Tensors appears to not have been used in the graph. Set allow_unused=True if this is the desired behavior.
The error appears to be due to the calculation "grades=torch. autograd. grad (loss, Tensor_list, create_graph=not first_order)"
This problem did not occur when I ran other experiments.
I would appreciate it if you could provide a solution

Activity

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