Conversion from numpy to torch using the torch.from_numpy method keeps the original data type, while converting using torch.Tensor(my_np_array) uses the type of the default Tensor (you could also select the new type of the convertion using torch.IntTensor(my_np_array) for example.
Also, note that float64 is actually double.