Normally



 d1sharma:

RuntimeError: Expected object of type torch.cuda.LongTensor but found type torch.LongTensor for argument #3 'index'



This error occurs when you do not have all the data in GPU (for example, sent).
Try to send the data to GPU (sent = sent.cuda()) and try again.