-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Support logging for MetricCollection with compute groups #15580
Conversation
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.
Typing probably needs to be updated here:
https://github.com/Lightning-AI/lightning/blob/2949ef29484edabd5277e25b5e075723f38936e6/src/pytorch_lightning/core/module.py#L468
together with the docstring
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.
LGTM
The override of .items()
made me very confused. I don't think it was a good idea to reuse the API of python but have it take arguments. Anyways, that's out of the scope of this PR
Ooops, IPU had a segmentation fault. Makes total sense! |
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.
lgtm
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
d5009b5
to
ffe3b9a
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
What does this PR do?
Fixes #13254
Adds native support for logging torchmetrics MetricCollection without destroying computegroups.
Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃
cc @Borda @carmocca @Blaizzy