When I use torch.nn.utils.rnn.pack_padded_sequence() in my model and move the model to a gpu, I need to move the input data to gpu as well. But the arguments of torch.nn.utils.rnn.pack_padded_sequence() include a list of lengths, how can I move a list to gpu? .cuda() method only works for torch.Tensor.