Hi, I am currently trying to do batch training on RNN.
The first step is to pad the batch of sequence using pack_padded_sequence().
But the function seems to take Variable as input, which means it need to be a tensor.
Currently, my input format is a list of tensors with varying length.
When I try to turn that list into a tensor, it throws me the error: ‘FloatTensor’ object does not support indexing
It seems that I cannot create tensor with varying length on any dimension.
My goal is to created a batch of padded sequence from list of tensors with varying length.
What may be the correct way of implementation ?