MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / __iter__

Method __iter__

tools/test_linear_probing_hf.py:201–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected