Forked from kabirahuja2431/iterable_dataloader_v2.py
Created
February 23, 2020 03:27
-
-
Save mrm8488/8da16c9c31739835466ee8ba2ca62778 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
dataset = CustomIterableDatasetv1('path_to/somefile') | |
dataloader = DataLoader(dataset, batch_size = 64) | |
for X, y in dataloader: | |
print(len(X)) # 64 | |
print(y.shape) # (64,) | |
### Do something with X and y | |
### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment