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

Method __len__

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

Source from the content-addressed store, hash-verified

424 return {'text': x, 'length': len(x), 'label': y}
425
426 def __len__(self):
427 return len(self.X)
428
429 def write(self, writer_gen=None, path=None, skip_header=False):
430 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected