I have met some problems in updating parameters while training model. For instance, I have 2 loss-functions: loss1 and loss2, let loss = loss1 + loss2. The model has feature extractor layers and classifier layers. And I want to update the parameters in feature extractor layers using loss and the parameters in classifier layers using loss1. How can I do that in pytorch???
Thanks guys!