Calling backward
multiple times will calculate the same gradients and accumulate them.
You would need to backward the derivatives again as described in this post.
1 Like
Calling backward
multiple times will calculate the same gradients and accumulate them.
You would need to backward the derivatives again as described in this post.