I have a network as follows.

IMG_00131536×1726 356 KB

Please don’t mind the picture representation of the network.
As in the pic, I have three loss functions. To do gradient descent, can I add all the three losses and form a loss L and do L.backward(). Or should I call backward individually on each loss?