mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-10 12:21:57 +08:00
updated docs
This commit is contained in:
@@ -237,10 +237,10 @@ def load_model_specific(self, checkpoint):
|
|||||||
### tng_dataloader
|
### tng_dataloader
|
||||||
|
|
||||||
``` {.python}
|
``` {.python}
|
||||||
@property
|
@ptl.data_loader
|
||||||
def tng_dataloader(self)
|
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
|
##### Return
|
||||||
Pytorch DataLoader
|
Pytorch DataLoader
|
||||||
@@ -270,10 +270,10 @@ def tng_dataloader(self):
|
|||||||
### val_dataloader
|
### val_dataloader
|
||||||
|
|
||||||
``` {.python}
|
``` {.python}
|
||||||
@property
|
@ptl.data_loader
|
||||||
def tng_dataloader(self)
|
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
|
##### Return
|
||||||
Pytorch DataLoader
|
Pytorch DataLoader
|
||||||
@@ -303,10 +303,10 @@ def val_dataloader(self):
|
|||||||
### test_dataloader
|
### test_dataloader
|
||||||
|
|
||||||
``` {.python}
|
``` {.python}
|
||||||
@property
|
@ptl.data_loader
|
||||||
def test_dataloader(self)
|
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
|
##### Return
|
||||||
Pytorch DataLoader
|
Pytorch DataLoader
|
||||||
|
|||||||
Reference in New Issue
Block a user