Module sampler

Source
Expand description

Defines the strategy to draw samples from the dataset.

Structs§

BatchIterator
An iterator for the batch. Yield a sequence of index at each iteration.
BatchSampler
Wraps another sampler to yield a mini-batch of indices.
RandomSampler
Sampler that returns random index between zero and data_source_len.
SequentialSampler
Yield index from zero to data_source_len in ascending order.

Traits§

Sampler
Every Sampler is iterable and has a length.