MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / __len__

Method __len__

toolbench/train/train.py:183–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

181 self.attention_mask = data_dict["attention_mask"]
182
183 def __len__(self):
184 return len(self.input_ids)
185
186 def __getitem__(self, i) -> Dict[str, torch.Tensor]:
187 return dict(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected