cerebras.modelzoo.data.common.h5_map_dataset.samplers.Sharder#

class cerebras.modelzoo.data.common.h5_map_dataset.samplers.Sharder[source]#

Bases: torch.utils.data.Sampler, cerebras.modelzoo.data.common.h5_map_dataset.samplers.PaddedSampler

Methods

Attributes

pad_index

__init__(data_source)[source]#
__call__(*args: Any, **kwargs: Any) Any#

Call self as a function.

static __new__(cls, *args: Any, **kwargs: Any) Any#