Skip to content

Need DistributedWeightedRandomSampler #1742

@Nic-Ma

Description

@Nic-Ma

Is your feature request related to a problem? Please describe.
Currently, PyTorch provides WeightedRandomSampler and DistributedSampler for the sampler arg of DataLoader, but users can't get both features together.

Describe the solution you'd like
Add DistributedWeightedRandomSampler to resample data based on weights after the distributed sampling.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions