-
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 support for torch Module type hints in LightningCLI #7807
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7807 +/- ##
=======================================
- Coverage 93% 88% -5%
=======================================
Files 199 199
Lines 13008 13008
=======================================
- Hits 12044 11425 -619
- Misses 964 1583 +619 |
I did verify that the tests were successful locally. Not sure why it is failing. |
I can reproduce the failure locally on |
I guess torchvision has changed a log between versions. In https://github.com/PyTorchLightning/pytorch-lightning/pull/7807/checks?check_run_id=2728907218 the error is I will look into this last error and probably also change the test to use something a bit more stable. |
- Run unit test only on newer torchvision versions in which the base class is Module.
for more information, see https://pre-commit.ci
@@ -7,4 +7,4 @@ torchtext>=0.5 | |||
# onnx>=1.7.0 | |||
onnxruntime>=1.3.0 | |||
hydra-core>=1.0 | |||
jsonargparse[signatures]>=3.12.0 | |||
jsonargparse[signatures]>=3.13.1 |
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.
is this the fix?
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.
Yes, the fix is there.
Co-authored-by: Carlos Mocholí <[email protected]>
* Fixed support for torch Module type hints in LightningCLI * - Fix issue with serializing values when type hint is Any. - Run unit test only on newer torchvision versions in which the base class is Module. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Minor change * Update CHANGELOG.md Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Mocholí <[email protected]> (cherry picked from commit f345840)
* Fixed support for torch Module type hints in LightningCLI * - Fix issue with serializing values when type hint is Any. - Run unit test only on newer torchvision versions in which the base class is Module. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Minor change * Update CHANGELOG.md Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Mocholí <[email protected]> (cherry picked from commit f345840)
What does this PR do?
Fixes a problem mentioned in #7774 (comment). It does not resolve the whole issue, only that single comment.
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
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 🙃