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

Method __len__

tasks/seq2seq/dataset.py:446–447  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

444 print_rank_0(f"Return {len(self.examples)} {split} examples")
445
446 def __len__(self):
447 return len(self.example_list)
448
449 def __getitem__(self, idx):
450 example = self.example_list[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected