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

Method __len__

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

Source from the content-addressed store, hash-verified

891 return np_rng.randint(self.ds_len)
892
893 def __len__(self):
894 return self.dataset_size
895
896 def __getitem__(self, idx):
897 # get rng state corresponding to index (allows deterministic random pair)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected