Thanks for your fast reply !!!
I also checked that the requires_grad=False but, still there are some values in weight.grad.
During training, the gradients are still computed, despite the require_grad=False.