nn.LSTM expects the input in the shape [seq_len, batch_size, features], so you could concatenate the tensors in the seq_len dimension before passing it to the model.
inputs = torch.cat(inputs, dim=0) should work.