experanto.utils.ShortCycler
- class ShortCycler(loaders)[source]
Bases:
objectCycle through multiple dataloaders until the shortest is exhausted.
Similar to
LongCycler, but stops when the smallest loader completes one epoch. No recycling occurs.- Parameters:
loaders (dict) – Dictionary mapping session keys to DataLoader instances.
Methods
__init__(loaders)