Skip to content
fn

set_anomaly_enabled

void set_anomaly_enabled(bool v)

Toggle the process-wide autograd anomaly-detection flag.

Parameters

vbool
true enables NaN gradient checks on backward node outputs; false disables them.