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

Method __iter__

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

Source from the content-addressed store, hash-verified

64 self.indices = indices
65
66 def __iter__(self):
67 return (self.indices[i] for i in torch.randperm(len(self.indices)))
68
69 def __len__(self):
70 return len(self.indices)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected