(self)
| 199 | self.epoch = 0 |
| 200 | |
| 201 | def __iter__(self): |
| 202 | while True: |
| 203 | if hasattr(self.sampler, 'set_epoch'): |
| 204 | self.sampler.set_epoch(self.epoch) |
| 205 | yield from iter(self.sampler) |
| 206 | self.epoch += 1 |
| 207 | |
| 208 | def __len__(self): |
| 209 | return int(1e18) # Effectively infinite |
nothing calls this directly
no outgoing calls
no test coverage detected