Last active
October 4, 2019 10:41
-
-
Save kabirahuja2431/aec470875de24868b538b94124640de0 to your computer and use it in GitHub Desktop.
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
from torch.utils.data import DataLoader | |
#Create a dataset object | |
dataset = CutsomDataset('path_to/somefile') | |
#Wrap it around a dataloader | |
dataloader = DataLoader(dataset, batch_size = 64, num_workers = 5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment