Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenMeshLab/MeshXL
/ __len__
Method
__len__
datasets/sft/base_dataset.py:48–49 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
46
return
deepcopy(self.data[idx])
47
48
def
__len__(self):
49
return
len(self.data) * self.num_repeat
50
51
def
__getitem__(self, idx):
52
data = self._fetch_data(idx)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected