MCPcopy Create free account
hub / github.com/HYUNJS/SGT / __iter__

Method __iter__

projects/Datasets/MOT/distributed_sampler.py:28–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self._local_indices = range(begin, end)
27
28 def __iter__(self):
29 while True:
30 yield from self._local_indices
31
32 def __len__(self):
33 return len(self._local_indices)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected