grad_fn gives you the name of the backward function for this particular tensor.
Since the last operation was a division, the result will have the gradient function grad_fn=<DivBackward> attached to it. Autograd uses these functions to step back through the computation graph and calculate the gradients for all parameters.