Hi,
Is there a way to copy the values (data and grad) of a tensor to another in a different device?
x = torch.ones(2, 2, device='cuda:0')
y = torch.zeros(2, 2, device='cuda:1')

# something like 
x.copy_to(y)

And what is the implication of this on this on the grad_fn?