espnet2.samplers.num_elements_batch_sampler.NumElementsBatchSampler
Less than 1 minute
espnet2.samplers.num_elements_batch_sampler.NumElementsBatchSampler
class espnet2.samplers.num_elements_batch_sampler.NumElementsBatchSampler(batch_bins: int, shape_files: Tuple[str, ...] | List[str], min_batch_size: int = 1, sort_in_batch: str = 'descending', sort_batch: str = 'ascending', drop_last: bool = False, padding: bool = True)
Bases: AbsSampler