train = False in test_dataloader (#162)
A small change to the CoolModel example. Now test_dataloader returns the MNIST test dataset.
This commit is contained in:
parent
4a0b56755c
commit
9fc66026f1
|
@ -80,7 +80,7 @@ class CoolModel(pl.LightningModule):
|
||||||
@pl.data_loader
|
@pl.data_loader
|
||||||
def test_dataloader(self):
|
def test_dataloader(self):
|
||||||
# OPTIONAL
|
# OPTIONAL
|
||||||
return DataLoader(MNIST(os.getcwd(), train=True, download=True, transform=transforms.ToTensor()), batch_size=32)
|
return DataLoader(MNIST(os.getcwd(), train=False, download=True, transform=transforms.ToTensor()), batch_size=32)
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
### How do these methods fit into the broader training?
|
### How do these methods fit into the broader training?
|
||||||
|
|
Loading…
Reference in New Issue