Skip to content

Commit

Permalink
fix: MNIST minor bug (Lightning-AI#5075)
Browse files Browse the repository at this point in the history
Co-authored-by: Roger Shieh <[email protected]>
  • Loading branch information
Shumpei-Kikuta and s-rog authored Dec 12, 2020
1 parent 5f34f2b commit d38e4d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/introduction_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@ In this method we do all the preparation we need to do once (instead of on every
def setup(self, stage):
# transform
transform=transforms.Compose([transforms.ToTensor()])
MNIST(os.getcwd(), train=True, download=False, transform=transform)
MNIST(os.getcwd(), train=False, download=False, transform=transform)
mnist_train = MNIST(os.getcwd(), train=True, download=False, transform=transform)
mnist_test = MNIST(os.getcwd(), train=False, download=False, transform=transform)
# train/val split
mnist_train, mnist_val = random_split(mnist_train, [55000, 5000])
Expand Down

0 comments on commit d38e4d1

Please sign in to comment.