zhifu gao
2023-04-23 f43d374e37aa61c0f64e77c9b318e3a13d353f9a
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