mrityu:

print(y.grad_fn._saved_result is


Of course, they do. I forgot to check the docs before I made my edit above. It says that .data_ptr() returns the address of the first element in the tensor it’s attached to.
The detailed answer to your question I believe you can find here: Autograd mechanics — PyTorch 1.10.1 documentation