Allow CudaTensors as indices

Allow indexFill, indexCopy, and index to accept CudaTensors as indices
instead of LongTensors. We already just do a copy from LongTensor to
CudaTensor in the cutorch implementations, so this changes doesn't
result in any additional loss in precision.
2 files changed