HI, I found a wired bug:
In [1]: import torch

In [2]: a=torch.tensor([2], requires_grad=True)

In [3]: b=a.to('cuda')

In [4]: a.requires_grad
Out[4]: True

In [5]: b.requires_grad
Out[5]: False


Why b do NOT keep requires_grad info from a ?
Besides, torch.to() seemingly not a in-place operation, which means, it’s different from .cuda(), So i feel confused since the migration guide told us to us .to() to replace .cuda()?