MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / __len__

Method __len__

codegeex/megatron/data/indexed_dataset.py:213–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

211 return sents
212
213 def __len__(self):
214 return self._len
215
216 def num_tokens(self, index):
217 return self.sizes[index]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected