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

Method __getitem__

data_utils/tokenization.py:93–94  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

91 setattr(self, command_token.name, command_token.token)
92
93 def __getitem__(self, index):
94 return self.tokenization[index]
95
96 def __len__(self):
97 return len(self.tokenization)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected