athena.utils.num_elements_batch_sampler

num elements batch sampler

Module Contents

Classes

NumElementsBatchSampler

Helper class that provides a standard way to create an ABC using

class athena.utils.num_elements_batch_sampler.NumElementsBatchSampler(batch_bins: int, shape_files: Union[Tuple[str, Ellipsis], List[str]], utt2shapes=None, min_batch_size: int = 1, sort_in_batch: str = 'descending', sort_batch: str = 'ascending', drop_last: bool = False, padding: bool = True)

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

__repr__()

Return repr(self).

__len__()
__iter__() Iterator[Tuple[str, Ellipsis]]
__getitem__(index)