Solved by tom in post #2 
              
              
                Whether it is the same depends on the batchsizes of the two dataloaders and the network: 

The first enforces the 1/4-3/4 weighting even if the batch sizes are not in that ratio. If the criterion self.crit takes the mean over batch size, this would be identical if the batch size is 3 duts inputs to …