Hi,
Yes it’s a leaf but does not require gradients when created. So no .grad will be saved for it.
Why do you want to do this? Why not use .retain_grad() on product directly. Then you can access the .grad attribute on it.