-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why even use PyTorch's DataLoader in dataloader.py #35
Comments
Hi @LexSong, You are right about the Cheers! |
It's really inefficient though. By default |
@LexSong, Yes, I know it is inefficient. BTW, I am not the author of this code, was just helping. Did you check out the links? |
@akanimax your codes are perfect. I even followed the VDB code which is very efficient and informative. |
It seems that the only way to get data from
self.dataloader
, is fromget_batch()
, and inget_batch()
we recreate a new iterator ofself.dataloader
every time it is called. Therefore we always use only the first item returned byself.dataloader
, which looks very pointless to createself.dataloader
in the first place.The text was updated successfully, but these errors were encountered: