MCPcopy Create free account
hub / github.com/apple/ml-pointersect / __len__

Method __len__

cdslib/core/data/dataloader/bucket_sampler.py:196–197  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 self.total_batches = len(self.all_batches)
195
196 def __len__(self):
197 return self.total_batches
198
199 def __iter__(self):
200 assert self.bucket_boundaries is not None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected