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

Keep the batch size even in strategy generator. #706

Open
Antlera opened this issue Sep 16, 2023 · 1 comment
Open

Keep the batch size even in strategy generator. #706

Antlera opened this issue Sep 16, 2023 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@Antlera
Copy link
Collaborator

Antlera commented Sep 16, 2023

Now we just calculate straight forward updated batch size from original batch size in strategy generator.
There are multiple libraries optimized for batch_size in the power of 2. (e.g. 2、4、8、16、32). It‘s reasonable to set an even batch size.

@Antlera Antlera self-assigned this Sep 16, 2023
@Antlera
Copy link
Collaborator Author

Antlera commented Sep 16, 2023

However, there are mystical problems mentioned by some blogs. That is to say, we may experience unexpected slow down by setting an even number batch size.

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

No branches or pull requests

1 participant