pytorch_forecasting.data.timeseries.
check_for_nonfinite
Check if 2D tensor contains NAs or inifinite values.
names (Union[str, List[str]]) – name(s) of column(s) (used for error messages)
tensor (torch.Tensor) – tensor to check
returns tensor if checks yield no issues
torch.Tensor