Skip to content

Differentiated Tensors not Used in Graph #2

Open
@programehr

Description

@programehr

Hi,
I've used a modified version of your code. The modification is supposed to be just some refactors (assuming I've made no mistakes).
I ran it on MNIST and a simple network, and it worked. But when I tried to use it on Cifar10 with Resnet18_comp I got the following error (line 61 of hypergrad.py):

One of the differentiated Tensors appears to not have been used in the graph. Set allow_unused=True if this is the desired behavior.

Do you know what the reason might be?

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