Skip to content

Instantly share code, notes, and snippets.

@albertlai431
Created December 4, 2018 00:26
Show Gist options
  • Save albertlai431/a1d34792861619087330a8525a25f7d1 to your computer and use it in GitHub Desktop.
Save albertlai431/a1d34792861619087330a8525a25f7d1 to your computer and use it in GitHub Desktop.
Loading into Dataloader
#Loading dataset into dataloader
train_loader = torch.utils.data.DataLoader(dataset=train_dataset,
batch_size=batch_size,
shuffle=True)
test_loader = torch.utils.data.DataLoader(dataset=test_dataset,
batch_size=batch_size,
shuffle=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment