As a general rule of thumb, it is advisable to have the two losses on the same scale. Else, the model responsible for the higher loss will have all parameter updates thus rendering the other model almost close to useless. In your case, dividing loss2 by 100 should bring them to the same scale.