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

Method __init__

lib/utils/data/sampler.py:63–64  ·  view source on GitHub ↗
(self, indices)

Source from the content-addressed store, hash-verified

61 """
62
63 def __init__(self, indices):
64 self.indices = indices
65
66 def __iter__(self):
67 return (self.indices[i] for i in torch.randperm(len(self.indices)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected