Skip to content
RED SAG Skills
hardStudy question · answer published in Deep Learning interview questions, so no pointsdeep-learningpytorchautograd

Calling backward twice

You call loss.backward() and then loss.backward() again on the same graph. PyTorch raises "Trying to backward through the graph a second time". Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions