Skip to content
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

dataloader #65

Closed
FrankWuuu opened this issue Oct 21, 2022 · 1 comment
Closed

dataloader #65

FrankWuuu opened this issue Oct 21, 2022 · 1 comment

Comments

@FrankWuuu
Copy link

in dataloaderdrop_last=True?
Otherwise,
dataloader = iter(zip(cycle(self.supervised_loader), self.unsupervised_loader))
might get different size

@yassouali
Copy link
Owner

yassouali commented Oct 21, 2022

hi @FrankWuuu

drop_last=True just removes the last batch if the number of its example < batch size, so at most you might lose 9 examples (for a batch of 10) at a given iteration, but then in the next you will see these examples since we train with a shuffle, i don't think it'll have any significant impact; tho it shouldn't be used for validation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants