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

Method __len__

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

Source from the content-addressed store, hash-verified

995 return iter(indices[(self.last_iter+1)*self.batch_size:])
996
997 def __len__(self):
998 return self.total_size - (self.last_iter+1)*self.batch_size
999
1000
1001class BatchSampler(Sampler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected