MCPcopy Create free account
hub / github.com/MuLabPKU/TransArch / __len__

Method __len__

CLOVER_ICML_2025/src/data.py:98–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 return {"input_ids": self.input_ids[idx], "attention_mask": self.attn_mask[idx]}
97
98 def __len__(self):
99 return len(self.input_ids)
100
101 test_ds = TestDataset(dataset, tokenizer, seqlen)
102 loader = DataLoader(test_ds, batch_size=batch_size)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected