Solved by albanD in post #4 
              
              
                I meant the  backward invocation in your training loop. 
At the moment, the anomaly detection mode only detect nans that appear during the .backward() call as it is hard for the end user to poke around in what happens there. 
I won’t detect nans that appear outside of the backward invocation. 
If na…