Skip to content

Commit

Permalink
Explicit data prep calls in datamodule docs (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiWaRe authored Jul 28, 2021
1 parent e22b8d0 commit 11686f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/datamodules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Or use it manually with plain PyTorch
Example::

dm = MNISTDataModule('path/to/data')
# download data and setup dataloaders
dm.prepare_data()
dm.setup()
for batch in dm.train_dataloader():
...
for batch in dm.val_dataloader():
Expand Down

0 comments on commit 11686f2

Please sign in to comment.