Hi,
.grad_fn is an internal thing from the autograd, you should not use it.
You can look at it (not call it !) to check which low level Function created a given Tensor but that’s it. In this case you can print(y.grad_fn) to check that it was created by a pow operation.