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

Method __init__

ML/src/python/neuralforge/data/dataset.py:177–179  ·  view source on GitHub ↗
(self, dataset: Dataset, prefetch_size: int = 100)

Source from the content-addressed store, hash-verified

175
176class PrefetchDataset(Dataset):
177 def __init__(self, dataset: Dataset, prefetch_size: int = 100):
178 self.dataset = dataset
179 self.prefetch_size = prefetch_size
180
181 def __len__(self) -> int:
182 return len(self.dataset)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected