RuntimeError: Trying to backward through the graph a second time. #170
Answered
by
Linux-cpp-lisp
isabel-s-rosa
asked this question in
Q&A
-
Hello! I am calling a deployed nequip model from C++ using libtorch, but after I run one step of the physics engine and call the model again on the updated input, I see an error that looks like this:
Has anyone seen this before or have any idea how to go about fixing it? All I'm doing in my code is calling the |
Beta Was this translation helpful? Give feedback.
Answered by
Linux-cpp-lisp
Feb 28, 2022
Replies: 1 comment 9 replies
-
HI @isabel-s-rosa; Hm... my first guess: did you update your input tensor instead of making a new tensor? |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
isabel-s-rosa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI @isabel-s-rosa;
Hm... my first guess:
did you update your input tensor instead of making a new tensor?