mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[flaky] fix mnist ptl data cache (#15344)
Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
parent
a54d69f535
commit
dc80d9f42a
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,10 @@ class LitMNIST(LightningModule):
|
|||
|
||||
# prepare transforms standard to MNIST
|
||||
mnist_train = MNIST(
|
||||
os.getcwd(), train=True, download=True, transform=transform)
|
||||
os.path.expanduser("~/data"),
|
||||
train=True,
|
||||
download=True,
|
||||
transform=transform)
|
||||
|
||||
self.mnist_train, self.mnist_val = random_split(
|
||||
mnist_train, [55000, 5000])
|
||||
|
|
Loading…
Add table
Reference in a new issue