Expand description
Defines the strategy to draw samples from the dataset.
Structs§
- Batch
Iterator - An iterator for the batch. Yield a sequence of index at each iteration.
- Batch
Sampler - Wraps another sampler to yield a mini-batch of indices.
- Random
Sampler - Sampler that returns random index between zero and
data_source_len
. - Sequential
Sampler - Yield index from zero to
data_source_len
in ascending order.
Traits§
- Sampler
- Every Sampler is iterable and has a length.