I want to add two optimizers for my network, the network have two different paths one for loss1  and another for loss2.
first i want to update the loss1 with optimizer1 and after that update, i want to update loss2 (that is a function of loss1) with optimizer2.
please help me how to do that.  @ptrblck @smth