MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / __iter__

Method __iter__

lib/utils/data/sampler.py:49–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 self.data_source = data_source
48
49 def __iter__(self):
50 return iter(torch.randperm(len(self.data_source)).long())
51
52 def __len__(self):
53 return len(self.data_source)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected