How to calculate second derivative for mixed precision

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