mmi_anti_pytorch icon indicating copy to clipboard operation
mmi_anti_pytorch copied to clipboard

version of pytorch, torchtext

Open Rigeru opened this issue 6 years ago • 1 comments

Which version of pytorch and torchtext do you use ? I got the following message when trying to perform translate.py. (I use pytorch 0.3.0 and torchtext 0.2.1. )

TypeError: torch.index_select received an invalid combination of arguments - got (torch.cuda.FloatTensor, int, torch.LongTensor), but expected (torch.cuda.FloatTensor source, int dim, torch.cuda.LongTensor index)

Rigeru avatar Nov 08 '18 10:11 Rigeru

Yeah, I'm using pytorch 0.3.0 and torchtext 0.2.1 on python 2.7

Do you know which line popped this error in which file?

XinnuoXu avatar Nov 08 '18 16:11 XinnuoXu