Created
June 27, 2019 08:16
-
-
Save Lexie88rus/048d08f0e056b9586c893e5e6dc06602 to your computer and use it in GitHub Desktop.
Preparing the dataset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define a transform | |
transform = transforms.Compose([transforms.ToTensor()]) | |
# Download and load the training data for Fashion MNIST | |
trainset = datasets.FashionMNIST('~/.pytorch/F_MNIST_data/', download=True, train=True, transform=transform) | |
trainloader = torch.utils.data.DataLoader(trainset, batch_size=64, shuffle=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment