MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / __len__

Method __len__

datasets/sampler.py:210–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208 self.reset()
209
210 def __len__(self) -> int:
211 return self.get_num_batch() // dist.get_world_size()
212
213 def group_by_bucket(self) -> dict:
214 bucket_sample_dict = OrderedDict()

Callers

nothing calls this directly

Calls 1

get_num_batchMethod · 0.95

Tested by

no test coverage detected