The docs say we can do this, but I get the following error:
>>> from torch.nn.utils.rnn import pad_sequence
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name pad_sequence
I tried in both python2 and 3 and my torch version is torch (0.3.0.post4). What am I missing?