How to debug "gradient computation has been modified by an inplace operation" errors?

Hi Ume!

In addition to Alex’s above post – in particular his suggestion to use
set_detect_anomaly() – here is a post that illustrates some ways
to debug these kinds of errors:

Good luck!

K. Frank