Source code for espnet2.iterators.abs_iter_factory

from abc import ABC, abstractmethod
from typing import Iterator


[docs]class AbsIterFactory(ABC):
[docs] @abstractmethod def build_iter(self, epoch: int, shuffle: bool = None) -> Iterator: raise NotImplementedError