Solved by ptrblck in post #2 
              
              
                You could transform the tensor via ind = ind.byte(). However, if your number of indices is small, it should be beneficial to directly index the tensor via: 
x = torch.randn(80, 3)
idx = torch.tensor([0, 4, 6])
ret = x[idx]