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

Method __len__

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

Source from the content-addressed store, hash-verified

589 print_rank_0(f"Return {len(self.examples)} {split} examples")
590
591 def __len__(self):
592 return len(self.example_list)
593
594 def __getitem__(self, idx):
595 example = self.example_list[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected