Skip to content

Instantly share code, notes, and snippets.

@Hanrui-Wang
Created July 17, 2019 00:43
Show Gist options
  • Select an option

  • Save Hanrui-Wang/5be73bbf8bb92cea5c956068413fdfcb to your computer and use it in GitHub Desktop.

Select an option

Save Hanrui-Wang/5be73bbf8bb92cea5c956068413fdfcb to your computer and use it in GitHub Desktop.
dataloader in pytorch
dataloader = DataLoader(transformed_dataset, batch_size=4,
shuffle=True, num_workers=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment