Combining loss for multiple dataloaders

yeah, 2 losses needs to be calculated - it can be done within same epoch as per solution provided by @awaelchli, however i would want to aggregate/add both loss for optimizer after each batch or epoch