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

Method __len__

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

Source from the content-addressed store, hash-verified

248 self.dataset = datasets.Caltech256(root=root, transform=transform, download=download)
249
250 def __len__(self):
251 return len(self.dataset)
252
253 def __getitem__(self, idx):
254 return self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected