I know input.new() will create a new tensor of the same dtype to input.
But what I want to do is to create a new tensor on the same device to input, but has different data types.
for example, input is torch.cuda.FloatTensor
but I wanna something like  torch.cuda.LongTensor
Is there any way to do it without if_else   wrt     use_cuda ?