雾聪
2023-06-28 e9241112654ea55ed55d02617d52fa93b5f6d8f9
1
2
3
4
5
6
7
8
9
from abc import ABC
from abc import abstractmethod
from typing import Iterator
 
 
class AbsIterFactory(ABC):
    @abstractmethod
    def build_iter(self, epoch: int, shuffle: bool = None) -> Iterator:
        raise NotImplementedError