MCPcopy Create free account
hub / github.com/SpatialVLA/SpatialVLA / __iter__

Method __iter__

train/monkey_patch.py:153–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 return len(self.lengths)
152
153 def __iter__(self):
154 indices = get_length_grouped_indices(self.lengths, self.batch_size, self.world_size, generator=self.generator)
155 return iter(indices)
156
157# patch trainer
158def _get_train_sampler(self) -> Optional[torch.utils.data.Sampler]:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected