pytorch converte o tensor

x.type(torch.DoubleTensor)
Frightened Finch