I have concatenated two different dataloaders in pytorch. My aim is to minimize loss1 for samples coming from dataloader1 and minimize loss2 for samples coming from dataloader2.
What would be the ideal/ best methods to do it in pytorch?