You should check the gradient of the weight of a layer by your_model_name.layer_name.weight.grad. If you access the gradient by backward_hook, it will only access the gradient w.r.t. input and ouput (as you have observed).