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

Method __len__

data_utils/tokenization.py:96–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 return self.tokenization[index]
95
96 def __len__(self):
97 return len(self.tokenization)
98
99 def insert(self, idx, other):
100 if isinstance(other, (CommandToken, TypeToken)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected