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

Why did you use count//batch_size*batch_size? #3

Open
samehraban opened this issue Aug 3, 2019 · 0 comments
Open

Why did you use count//batch_size*batch_size? #3

samehraban opened this issue Aug 3, 2019 · 0 comments

Comments

@samehraban
Copy link

samehraban commented Aug 3, 2019

In trainer.datagen.Iterator class constructor, you counted lines in csv file and then set size of dataset in this way:

count = count//batch_size*batch_size

This way you make sure that count is divisible by batch_size, but is it necessary?

@samehraban samehraban changed the title Why did you use batch_size*batch_size? Why did you use count//batch_size*batch_size? Aug 3, 2019
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

1 participant