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

Method __iter__

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

Source from the content-addressed store, hash-verified

87 self.replacement = replacement
88
89 def __iter__(self):
90 return iter(torch.multinomial(self.weights, self.num_samples, self.replacement))
91
92 def __len__(self):
93 return self.num_samples

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected