-
Notifications
You must be signed in to change notification settings - Fork 281
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
Conversation
@@ -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))) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!
Before submitting
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 🙃