You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running one_hot.backward(retain_graph=True) , an error appears.
RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time.
But retain_graph=True is already in backward()
How can I deal with this situation?
The text was updated successfully, but these errors were encountered:
While running one_hot.backward(retain_graph=True) , an error appears.
RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time.
But retain_graph=True is already in backward()
How can I deal with this situation?
The text was updated successfully, but these errors were encountered: