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

Method __len__

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

Source from the content-addressed store, hash-verified

90 return iter(torch.multinomial(self.weights, self.num_samples, self.replacement))
91
92 def __len__(self):
93 return self.num_samples
94
95
96class BatchSampler(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected