Hi,
I have been browsing the forum and could not find answer to my question.
I have a model that has two outputs. At first, I combined the two losses and used one optimizer to calculate the gradients.
Now, I want to try using two separate optimizers. However, the two branches of the model (that result in two outputs) have overlapping parameters. How can I calculate and update the gradients of the model without updating the same parameters twice?