MCPcopy Create free account
hub / github.com/OpenGVLab/EfficientQAT / __len__

Method __len__

deita_dataset/train.py:284–285  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

282 self.attention_mask = data_dict["attention_mask"]
283
284 def __len__(self):
285 return len(self.input_ids)
286
287 def __getitem__(self, i) -> Dict[str, torch.Tensor]:
288 return dict(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected