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

Method __len__

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

Source from the content-addressed store, hash-verified

205 self.template = template
206
207 def __len__(self):
208 return len(self.raw_data)
209
210 def __getitem__(self, i) -> Dict[str, torch.Tensor]:
211 if i in self.cached_data_dict:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected