MCPcopy Create free account
hub / github.com/dcharatan/flowmap / DataModuleOverfit

Class DataModuleOverfit

flowmap/dataset/data_module_overfit.py:20–29  ·  view source on GitHub ↗

Give PyTorch Lightning dummy data loaders so it runs the training loop. The ModelWrapper already has the training data from its __init__.

Source from the content-addressed store, hash-verified

18
19
20class DataModuleOverfit(LightningDataModule):
21 """Give PyTorch Lightning dummy data loaders so it runs the training loop. The
22 ModelWrapper already has the training data from its __init__.
23 """
24
25 def train_dataloader(self):
26 return DataLoader(DummyDataset(), 1, num_workers=0)
27
28 def val_dataloader(self):
29 return DataLoader(DummyDataset(limit=1), 1, num_workers=0)

Callers 1

overfitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected