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
I am trying to solve Fokker-Planck equation of 2d duffing oscillator with neural network. And here is my code: In the middle, g1_x1, g1_x2 matters. I marked them up with ***.