How to index with torch.cuda.LongTensor

I also get a similar error…Thougn I checked and all my data seems to be on GPU…msg I get:

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

my question is at: