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

[chore] OSS - get to 100% coverage #618

Merged
merged 1 commit into from
Apr 21, 2021
Merged

[chore] OSS - get to 100% coverage #618

merged 1 commit into from
Apr 21, 2021

Conversation

blefaudeux
Copy link
Contributor

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
  • Did you read the contributor guideline?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Remove two deprecated code paths which were not covered by unit tests. This should bring OSS code cov to 100%

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@blefaudeux blefaudeux requested a review from msbaines April 20, 2021 21:56
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 20, 2021
@blefaudeux blefaudeux requested review from anj-s and min-xu-ai April 20, 2021 21:56
@@ -390,22 +376,14 @@ def load_state_dict(self, state_dict: Dict[str, Any]) -> None:
)
}

# FIXME: pytorch1.5 compatibility, to be removed when 1.5 support ends
_param_list = list(chain.from_iterable((g["params"] for g in self.param_groups)))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this dated back to pytorch 1.5, not tested anymore after we changed the CI

@@ -301,20 +301,6 @@ def consolidate_state_dict(self, recipient_rank: int = 0) -> None:

logging.debug("State from rank %s received", rank)

def local_state_dict(self) -> dict:
""" .. deprecated:: 0.1.5
Copy link
Contributor Author

Choose a reason for hiding this comment

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

been deprecated for a while, I think that this should be safe to remove (and there was not much to do with this anyway)

Copy link
Contributor

@min-xu-ai min-xu-ai left a comment

Choose a reason for hiding this comment

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

awesome!

@blefaudeux blefaudeux merged commit b0e6b9b into master Apr 21, 2021
@blefaudeux blefaudeux deleted the oss_code_coverage branch April 21, 2021 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants