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

Method __len__

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

Source from the content-addressed store, hash-verified

266 self.dataset = datasets.OxfordIIITPet(root=root, split=split, transform=transform, download=download)
267
268 def __len__(self):
269 return len(self.dataset)
270
271 def __getitem__(self, idx):
272 return self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected