MCPcopy Create free account
hub / github.com/THUDM/GLM / __len__

Method __len__

data_utils/datasets.py:315–316  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

313 return None
314
315 def __len__(self):
316 return len(self.X)
317
318 def __getitem__(self, index):
319 """process+tokenize string and return string,label,and stringlen"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected