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

Method __len__

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

Source from the content-addressed store, hash-verified

497 del self._index
498
499 def __len__(self):
500 return len(self._index)
501
502 # @lru_cache(maxsize=8)
503 def __getitem__(self, idx):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected