set_detect_anomaly
- class tensorplay.autograd.anomaly_mode.set_detect_anomaly(mode: bool, check_nan: bool = True)[source]
Context-manager that sets the anomaly detection for the autograd engine on or off.
set_detect_anomalywill enable or disable the autograd anomaly detection based on its argumentmode. It can be used as a context-manager or as a function.See
detect_anomalyabove for details of the anomaly detection behaviour.

