Fine-tune specific element (e.g. all cnn weights)

I want to fine-tune all specific element, like all cnn weights, in a model.
Since these elements are too fragmentary, it is hard to set requires_flag on each of them.
Is there any more elegant way to do it?

Here’s the answer I get from stack overflow.