docs/cpp/source/api/data/samplers.md
Samplers control the order in which samples are accessed from a dataset. They determine the indices that the DataLoader uses to fetch data.
:members:
:undoc-members:
Accesses samples in order from 0 to N-1. Use this for evaluation or when order matters.
:members:
:undoc-members:
Accesses samples in random order. Use this for training to ensure the model sees samples in different orders each epoch.
:members:
:undoc-members:
For distributed training, ensures each process gets a different subset of the data without overlap.
:members:
:undoc-members:
:members:
:undoc-members:
:members:
:undoc-members:
:members:
:undoc-members: