Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ __len__
Method
__len__
data_utils/corpora.py:62–63 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
60
return
{
"tokens"
: text,
"loss_masks"
: mask}
61
62
def
__len__(self):
63
return
len(self.texts)
64
65
66
class
PromptDataset(data.Dataset):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected