I try to print the address of a variable on GPU and CPU separately by id() function in python, but they looks close to each other in host memory, i don not know why.
>>> a = torch.tensor([1, 2, 3])
>>> print(id(a))
139651301379824
>>> b = a.to('cuda:2')
>>> print(id(b))
139651301392848