I-BAU icon indicating copy to clipboard operation
I-BAU copied to clipboard

Differentiated Tensors not Used in Graph

Open programehr opened this issue 1 year ago • 0 comments

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?

programehr avatar Jul 10 '23 13:07 programehr