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

[hotfix] replace StepControl.can_modify with began_allreduce #402

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

justheuristic
Copy link
Member

This PR fixes an edge case: previously, DecentralizedAverager would not set began_allreduce correctly when actually running all-reduce. It had mistakenly set can_modify=False instead of the actual property began_allreduce=True.

@codecov
Copy link

codecov bot commented Nov 6, 2021

Codecov Report

Merging #402 (31e7834) into master (793a741) will decrease coverage by 0.22%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #402      +/-   ##
==========================================
- Coverage   83.79%   83.57%   -0.23%     
==========================================
  Files          73       73              
  Lines        6678     6678              
==========================================
- Hits         5596     5581      -15     
- Misses       1082     1097      +15     
Impacted Files Coverage Δ
hivemind/averaging/control.py 91.39% <100.00%> (ø)
hivemind/averaging/matchmaking.py 78.11% <0.00%> (-6.39%) ⬇️
hivemind/utils/mpfuture.py 94.95% <0.00%> (+0.91%) ⬆️
hivemind/dht/dht.py 92.40% <0.00%> (+2.53%) ⬆️

@justheuristic justheuristic merged commit 7c4d13f into master Nov 6, 2021
@justheuristic justheuristic deleted the hotfix branch November 6, 2021 08:37
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