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

Fix bug when batch size is a non-multiple of sequence length #2661

Merged
merged 2 commits into from
Oct 3, 2019

Conversation

ervteng
Copy link
Contributor

@ervteng ervteng commented Oct 2, 2019

  • In PPO trainer, always round batch size down to the nearest multiple of sequence length, with at least one sequence always (same as 0.9 and SAC behavior).
  • Add test to detect this error

Add test to detect this error
@ervteng ervteng requested a review from harperj October 2, 2019 20:13
Copy link
Contributor

@harperj harperj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- this should return us to similar behavior to what we had previously

@ervteng ervteng merged commit 80c1af3 into develop Oct 3, 2019
@ervteng ervteng deleted the develop-sequencelengthbug branch October 8, 2019 21:54
@ervteng ervteng mentioned this pull request Oct 9, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants