Hi,
In your case you don’t need to do anything as you specify requires_grad=False before the forward.
Your weight are updated most certainly because you use adam and it will change the weight even if the gradients are 0 because of the momentum terms.