Yea I understand if min(loss1, loss2) is loss1, loss.backward() will only backprop through model1 and vice versa. Please suggest a better or alternative way to solve this. I need to backprop min of loss1 and loss2 through both models.