MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / __len__

Method __len__

codegeex/mindspore/src/sat_dataset.py:185–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 self.index_mapping = np.random.permutation(np.arange(len(ds)))
184
185 def __len__(self):
186 return len(self.wrapped_data)
187
188 def __getitem__(self, index):
189 # rng = random.Random(index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected