The backprop will just populate the .grad field of all parameters given a loss function.
If you have a single loss and two optimizers. You do a single backward and then each optimizer’s step.
If you have one loss per optimizer, then you want to do one backward, one step, zero the gradients, one backward, one step. To get only the gradients corresponding to each loss for the right optimizer.