Hi,
I need help to understand this behaviour. I’m trying to move a tensor between gpus using the method .to(). However, when I move the tensor between gpu 0 and gpu 1 the resultant tensor on 1 only contains 0 as it can be seen here:
>>> import torch
>>> a= torch.rand(3,3)
>>> a
tensor([[0.6060, 0.0625, 0.8044],
        [0.1404, 0.2677, 0.0491],
        [0.4104, 0.7037, 0.1225]])
>>> b=a.to('cuda:0')
>>> b
tensor([[0.6060, 0.0625, 0.8044],
        [0.1404, 0.2677, 0.0491],
        [0.4104, 0.7037, 0.1225]], device='cuda:0')
>>> b.to('cuda:1')
tensor([[0., 0., 0.],
        [0., 0., 0.],
        [0., 0., 0.]], device='cuda:1')

This happens to titan x gpus. However if I use gtx1080 this work properly. Is there any explanation that explains this behaviour?
Thanks