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 shape validation in GradientAverager #481

Merged
merged 1 commit into from
Jun 8, 2022
Merged

Conversation

mryab
Copy link
Member

@mryab mryab commented Jun 8, 2022

There are a couple of typos in the shape-validating code of __init__ in GradientAverager for the case where we pass both the parameters and their gradients that need to be averaged. Fixed the typos, the check itself and added a test to make sure we raise an error in this case

@mryab mryab requested a review from justheuristic June 8, 2022 14:43
Copy link
Member

@justheuristic justheuristic left a comment

Choose a reason for hiding this comment

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

good catch!

@mryab mryab force-pushed the fix_grad_averager branch from 7b83bc5 to 8e0036c Compare June 8, 2022 15:36
@mryab mryab merged commit dac8940 into master Jun 8, 2022
@mryab mryab deleted the fix_grad_averager branch June 8, 2022 18:19
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

Successfully merging this pull request may close these issues.

2 participants