thsolver.sampler
The samplers in this module provide endless iteration for training and testing without rebuilding the dataloader every epoch.
- class InfSampler(dataset: Dataset, shuffle: bool = True)[source]
An infinite sampler that cycles through dataset indices.
- Parameters: