Hello. I have the same error, and I described my question in detail here:Calculating loss with autograd: One of the differentiated Tensors appears to not have been used in the graph 37
Is this happening because I need to create a custom pytorch function for the curl?