In method 'groupparams' which located in class 'DefaultParamsConstructor', I See the code shown below. The parameters which require_grad = False will pass to optimizers when filter_params = False. I don't understand why this needs to be done. Can't the optimizer only accept parameters that require gradients? Thank you very much.
In method 'groupparams' which located in class 'DefaultParamsConstructor', I See the code shown below. The parameters which require_grad = False will pass to optimizers when filter_params = False. I don't understand why this needs to be done. Can't the optimizer only accept parameters that require gradients? Thank you very much.