It seems the tensor is empty.
In 0.3 you can recreate the error with:
a = torch.cuda.LongTensor()
a[0]

I think you have to check, why the data is empty. Since the code was written by someone else, could you check, that all paths, directories are set to a valid location?
Maybe the data loading fails without a warning, resulting in empty tensors.