Ok I finally managed to get the devil running. I did have to go into line 281 of text\data.py and make some changes.
I found this discussion about how pytorch tensor doesn’t accept integers half way down the page https://github.com/pytorch/pytorch/issues/8365
So I went I changed pad_collate() from
return res, torch.tensor([s[1] for s in samples]).squeeze()
to
return res, torch.tensor([np.long(s[1]) for s in samples]).squeeze()
See image below:
