pytorch_forecasting.utils.
unpack_sequence
Unpack RNN sequence.
sequence (Union[torch.Tensor, rnn.PackedSequence]) – RNN packed sequence or tensor of which first index are samples and second are timesteps
tuple of unpacked sequence and length of samples
Tuple[torch.Tensor, torch.Tensor]