MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __iter__

Method __iter__

PATH/core/distributed_utils.py:1076–1078  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1074 self.end = min(self.beg+sub_num, len(self.dataset))
1075
1076 def __iter__(self):
1077 indices = list(range(self.beg, self.end))
1078 return iter(indices)
1079
1080 def __len__(self):
1081 return self.end - self.beg

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected