Love you
Just a correction, "You need to give it indices as [a Variable containing a] LongTensor".
Variable
LongTensor