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

Method __getitem__

CLOVER_ICML_2025/src/data.py:95–96  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

93 self.attn_mask = attn_mask
94
95 def __getitem__(self, idx):
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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected