Error while passing packed_padded_sequence through lstm

Hi,

I get the following error - RuntimeError: Expected hidden size (1, 32, 300), got (1L, 16L, 300L).

The input however is of shape [torch.cuda.FloatTensor of size 476x300 (GPU 0)]
, batch_sizes=[32, 32, 32, 32, 32, 32, 32, 32, 31, 29, 26, 23, 19, 16, 14, 12, 8, 7, 5, 5, 3, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

both pack_wv and the lstm are initialised batch_first=False. Any help would be highly appreciated.