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

Method __len__

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

Source from the content-addressed store, hash-verified

49 self.dataset = datasets.CIFAR100(root=root, train=train, transform=transform, download=download)
50
51 def __len__(self):
52 return len(self.dataset)
53
54 def __getitem__(self, idx):
55 return self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected