Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 25, 2019
1 parent 715bf23 commit 9fa8120
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/LightningModule/RequiredTrainerInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ def load_model_specific(self, checkpoint):
### tng_dataloader

``` {.python}
@property
@ptl.data_loader
def tng_dataloader(self)
```
Called by lightning during training loop. Define it as a property.
Called by lightning during training loop. Make sure to use the @ptl.data_loader decorator, this ensures not calling this function until the data are needed.

##### Return
Pytorch DataLoader
Expand Down Expand Up @@ -270,10 +270,10 @@ def tng_dataloader(self):
### val_dataloader

``` {.python}
@property
@ptl.data_loader
def tng_dataloader(self)
```
Called by lightning during validation loop. Define it as a property.
Called by lightning during validation loop. Make sure to use the @ptl.data_loader decorator, this ensures not calling this function until the data are needed.

##### Return
Pytorch DataLoader
Expand Down Expand Up @@ -303,10 +303,10 @@ def val_dataloader(self):
### test_dataloader

``` {.python}
@property
@ptl.data_loader
def test_dataloader(self)
```
Called by lightning during test loop. Define it as a property.
Called by lightning during test loop. Make sure to use the @ptl.data_loader decorator, this ensures not calling this function until the data are needed.

##### Return
Pytorch DataLoader
Expand Down

0 comments on commit 9fa8120

Please sign in to comment.