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

Method __len__

ML/src/python/neuralforge/data/dataset.py:164–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 self.scales = scales
163
164 def __len__(self) -> int:
165 return len(self.dataset)
166
167 def __getitem__(self, idx: int) -> Tuple[torch.Tensor, int]:
168 image, label = self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected