MCPcopy Create free account
hub / github.com/geekcomputers/Python / __len__

Method __len__

ML/src/python/neuralforge/data/datasets.py:232–233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

230 self.dataset = datasets.Food101(root=root, split=split, transform=transform, download=download)
231
232 def __len__(self):
233 return len(self.dataset)
234
235 def __getitem__(self, idx):
236 return self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected