(self, sampler: Sampler, shuffle: bool = True, seed: int = 0)
| 193 | """Wraps another sampler to yield an infinite stream of indices.""" |
| 194 | |
| 195 | def __init__(self, sampler: Sampler, shuffle: bool = True, seed: int = 0): |
| 196 | self.sampler = sampler |
| 197 | self.shuffle = shuffle |
| 198 | self.seed = seed |
| 199 | self.epoch = 0 |
| 200 | |
| 201 | def __iter__(self): |
| 202 | while True: |
nothing calls this directly
no outgoing calls
no test coverage detected