espnet2.samplers.folded_batch_sampler.FoldedBatchSampler
Less than 1 minute
espnet2.samplers.folded_batch_sampler.FoldedBatchSampler
class espnet2.samplers.folded_batch_sampler.FoldedBatchSampler(batch_size: int, shape_files: Tuple[str, ...] | List[str], fold_lengths: Sequence[int], min_batch_size: int = 1, sort_in_batch: str = 'descending', sort_batch: str = 'ascending', drop_last: bool = False, utt2category_file: str | None = None)
Bases: AbsSampler