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

Method __len__

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

Source from the content-addressed store, hash-verified

817 print_rank_0(f"Return {len(self.examples)} {split} examples")
818
819 def __len__(self):
820 return len(self.example_list)
821
822 def __getitem__(self, idx):
823 example = self.example_list[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected