modelzoo.transformers.data_processing.h5_map_dataset.samplers.BaseSampler#

class modelzoo.transformers.data_processing.h5_map_dataset.samplers.BaseSampler[source]#

Bases: torch.utils.data.Sampler

Handle shuffling and skipping

Methods

Attributes

num_samples

__call__(*args: Any, **kwargs: Any) Any#

Call self as a function.

__init__(data_source, num_samples=None, shuffle=True, seed=None, start_index=0)[source]#
static __new__(cls, *args: Any, **kwargs: Any) Any#