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

Method __len__

data_utils/datasets.py:161–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159 self._Y = None
160
161 def __len__(self):
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])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected