MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / __next__

Method __next__

utils/data.py:123–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 return len(self.loader)
122
123 def __next__(self):
124 if self.iterator is None:
125 self.iterator = iter(self.loader)
126
127 try:
128 samples = next(self.iterator)
129 except StopIteration:
130 self.iterator = iter(self.loader)
131 samples = next(self.iterator)
132
133 return samples

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected