espnet2.samplers.length_batch_sampler.LengthBatchSampler
Less than 1 minute
espnet2.samplers.length_batch_sampler.LengthBatchSampler
class espnet2.samplers.length_batch_sampler.LengthBatchSampler(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