Dynamic Gradient Computation

Hello,

I’m not sure if there’s a really simple way to do this, but essentially I would like to selectively calculate the gradient updates in the backward pass of my network. Ideally I would not just zero out the gradient updates, but not even calculate the update for a handful of parameters. Is there an easy way to do this?

Thanks!