Are you using the same PyTorch version (CUDA, cudnn)?
Getting the same “random” numbers on different hardware is sometimes quite hard.
However, using your code, I get the same result (tensor(1000260., device='cuda:0')) for:

PyTorch 1.2.0, CUDA10.0.130, cudnn7602, TitanV
PyTorch master ~few weeks old, CUDA10.1.168, cudnn7601, V100