pytorch_forecasting.models.base_model.
_torch_cat_na
Concatenate tensor along dim=0 and add nans along dim=1 if necessary.
dim=0
dim=1
Allows concatenation of tensors where dim=1 are not equal. Missing values are filled up with nan.
nan
x (List[torch.Tensor]) – list of tensors to concatenate along dimension 0
concatenated tensor
torch.Tensor