Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeformRobotics/OTS
/ __len__
Method
__len__
lib/utils/data/sampler.py:69–70 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
67
return
(self.indices[i]
for
i in torch.randperm(len(self.indices)))
68
69
def
__len__(self):
70
return
len(self.indices)
71
72
73
class
WeightedRandomSampler(Sampler):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected