Hi @Hovnatan_Karapetyan,
b grad is None since it is a non-leaf Tensor.
In your example:
>>> a.is_leaf
True
>>> b.is_leaf
False

The gradient will be calculated in the during the backward phase (since it is needed by a) but it won’t kept in grad.