I’ve ran into the same issue, and it feels like a bug in PackedSequence, which it looks like it’s fixed:
here 45, and if my reading of Github info is correct, it should be available latest in PyTorch 1.4.0 (?)