MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / __len__

Method __len__

test/gsm8k/test.py:133–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 self.labels = data_dict["labels"]
132
133 def __len__(self):
134 return len(self.input_ids)
135
136 def __getitem__(self, i) -> Dict[str, torch.Tensor]:
137 return dict(input_ids=self.input_ids[i], labels=self.labels[i], id=i)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected