What is the criteria that separate optimizers?
What I want to build is :
Encoder A -> Classifier A
Encoder A -> Classifier B

I want to make Classifier B backpropagate only to Encoder A (not to Classifier A.)
then this optimizer can work? or should I separate optimizers?
   optimizer = optim.RMSprop(
        list(encoderA.parameters()) +
        list(classifierA.parameters()) +
        list(classifierB.parameters()),
        lr=1e-3)