-
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
fix(wandb): prevent WandbLogger from dropping values #5931
Merged
Merged
Changes from 19 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
3b13bf4
feat(wandb): use new wandb API
borisdayma 866eebe
feat: handle earlier wandb versions
borisdayma 46a4680
feat: remove unused import
borisdayma 9f3ef61
feat(wandb): regular x-axis for train/step
borisdayma 0b037fc
feat(wandb): offset not needed anymore
borisdayma e46ba5f
tests(wandb): handle new API
borisdayma a0940cf
style: remove white space
borisdayma 6b80d73
doc(wandb): update CHANGELOG
borisdayma 8a2818c
feat(wandb): update per API
borisdayma b49a2b6
Merge branch 'master' into feat-wandb_x
borisdayma f00dadf
feat(wandb): deprecation of sync_step
borisdayma 6230155
fix(wandb): typo
borisdayma 59cf073
style: fix pep8
borisdayma d95dd58
Apply suggestions from code review
borisdayma 0b2d77e
Merge branch 'master' of https://github.com/borisdayma/pytorch-lightn…
borisdayma b0f48e5
docs: update CHANGELOG
borisdayma b19f5d2
Add deprecation test
carmocca 92d805f
Merge branch 'master' into feat-wandb_x
carmocca f5f61bf
Merge branch 'master' into feat-wandb_x
tchaton 6639100
Apply suggestions from code review
borisdayma 6d587a0
fix(wandb): tests and typo
borisdayma 3babc78
Merge branch 'master'
borisdayma 67c0215
Merge branch 'master' into feat-wandb_x
awaelchli 8b1b234
Merge branch 'master' into feat-wandb_x
awaelchli 3ced69c
fix changelog
awaelchli 8ffdf0b
fix changelog
awaelchli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright The PyTorch Lightning team. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
"""Test deprecated functionality which will be removed in v1.5.0""" | ||
from unittest import mock | ||
|
||
import pytest | ||
|
||
from pytorch_lightning.loggers import WandbLogger | ||
|
||
|
||
@mock.patch('pytorch_lightning.loggers.wandb.wandb') | ||
def test_v1_5_0_wandb_unused_sync_step(tmpdir): | ||
with pytest.deprecated_call(match=r"v1.2.1 and will be removed in v1.5"): | ||
WandbLogger(sync_step=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
would it make sense to have this step metric name as an argument for customization?
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.
It could be useful but there would be a few extra things to think of:
If you call this method explicitly you will actually be able to overwrite this default behavior.
Let me see with the W&B team what they plan to do if the step_metric is not monotonic to have an idea of how we should handle these custom cases (and feel free if you have any example in mind).