Data samplers#

Custom samplers for torch.utils.data.DataLoader.

Random samplers#

DistributedWeightedRandomSampler

A version of WeightedRandomSampler that can be used with DistributedDataParallel training.