Is it possible to use a set of fixed parameter for CNN?

Hi, all,
I want to assign the parameters of a conv layer by hand and fix it. Is it possible to set some parameters such as requires_grad = False for the conv layer?

The easy way is


Which tells pytorch not to update the weights on that particular layer.