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

Method get_text_len

data_utils/datasets.py:164–165  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

162 return len(self.split_inds)
163
164 def get_text_len(self, idx):
165 return self.wrapped_data.get_text_len(self.split_inds[idx])
166
167 def __getitem__(self, index):
168 return self.wrapped_data[self.split_inds[index]]

Callers 4

get_text_lenMethod · 0.45
init_indicesMethod · 0.45
init_weightingMethod · 0.45
init_weightingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected