Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/LongWriter
/ __len__
Method
__len__
train/dataset.py:44–45 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
42
}
43
44
def
__len__(self):
45
return
self.input_ids.size(0)
46
47
class
LMPackDataset(torch.utils.data.Dataset):
48
def
__init__(self, filepath):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected