unless you call .backward() on the two extra losses, or add them to the main loss before calling backward (for eg. `(main_loss + loss_extra1 + loss_extra2).backward()), they wont affect the gradients you computed.