-
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
Group metrics generated by DeviceStatsMonitor
for better visualization
#11254
Group metrics generated by DeviceStatsMonitor
for better visualization
#11254
Conversation
DeviceStatsMonitor
for visualizationDeviceStatsMonitor
for better visualization
Co-authored-by: Jirka Borovec <[email protected]>
…ion (#11254) Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: Jirka Borovec <[email protected]>
@@ -54,12 +55,15 @@ def on_train_batch_start( | |||
batch_idx: int, | |||
unused: Optional[int] = 0, | |||
) -> None: | |||
if not trainer.logger: | |||
raise MisconfigurationException("Cannot use `DeviceStatsMonitor` callback with `Trainer(logger=False)`.") |
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.
@ananthsub why did you add two more MisconfigurationException
s here if we already have one in line 48?
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.
probably because of mypy, which does not know that the logger was already checked against None in the previous hook :))
What does this PR do?
Fixes #11176
Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃