MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS / __len__

Method __len__

finetune_moss.py:97–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 logger.info(f"Load data successfully, total {len(self.data)} training samples")
96
97 def __len__(self):
98 return len(self.data)
99
100 def __getitem__(self, index):
101 data = copy.deepcopy(self.data[index])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected