Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiated Tensors not Used in Graph #2

Open
programehr opened this issue Jul 10, 2023 · 2 comments
Open

Differentiated Tensors not Used in Graph #2

programehr opened this issue Jul 10, 2023 · 2 comments

Comments

@programehr
Copy link

programehr commented Jul 10, 2023

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?

@chengyiqiu1121
Copy link

Hi, have you solve this problem now? I face the same problem.

@programehr
Copy link
Author

Hi, have you solve this problem now? I face the same problem.

Hi, unfortunately not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants