The official document says,
“However, .data can be unsafe in some cases. Any changes on x.data wouldn’t be tracked by autograd, and the computed gradients would be incorrect if x is needed in a backward pass. A safer alternative is to use x.detach(), which also returns a Tensor that shares data with requires_grad=False, but will have its in-place changes reported by autograd if x is needed in backward.”
How to understand the sentence of bold?  I get a new tensor with detach(), the new tensor is still related to x ? What the in-place changes are reported to? If it means in-place changes of the new tensor will be reported to x, why is it doing this?
oh…I really dont understand. Anyone can help me ? thanks a lot!