Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ __len__
Method
__len__
data_utils/samplers.py:102–103 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
100
yield
tbatch
101
102
def
__len__(self):
103
return
self.train_iters
104
105
def
_batch(self, batch):
106
""
"extracts samples only pertaining to this worker's batch"
""
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected