Hi,
the .grad field is only populated for leaf tensors. That is a tensor created by the user where requires_grad=True is specified.
If you want the .grad value for an intermediate result to inspect it, you can call .retain_grad() on it during the forward pass.