finite_checks¶
Functions
Iterates over model parameters and prints gradients if any parameter is not finite. |
|
Iterates over model parameters and prints out parameter + gradient information if NaN. |
Helper functions to detect NaN/Inf values.
- pytorch_lightning.utilities.finite_checks.detect_nan_parameters(model)[source]¶
Iterates over model parameters and prints gradients if any parameter is not finite.
- Raises
ValueError – If
NaN
orinf
values are found- Return type