Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeformRobotics/OTS
/ __len__
Method
__len__
lib/utils/data/sampler.py:52–53 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
50
return
iter(torch.randperm(len(self.data_source)).long())
51
52
def
__len__(self):
53
return
len(self.data_source)
54
55
56
class
SubsetRandomSampler(Sampler):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected