Hi,
I’m afraid there isn’t much. But a leaf is a Tensor with no history. And the .backward() function will accumulate gradients in all the leafs that require gradients.
So if a Tensor has history, it is a not a leaf and .backward() won’t populate its .grad field.