Error with Lengths in pack_padded_sequence

Which PyTorch version are you using?
Mine might be a bit too old (1.0.0.dev20190104).