-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Enabled typing check for densenet #3395
base: main
Are you sure you want to change the base?
Conversation
According to https://github.com/pytorch/pytorch/blob/master/torch/nn/functional.pyi.in#L89 and https://github.com/pytorch/pytorch/blob/master/torch/nn/common_types.py#L29, I believe the typing error about adaptive_avg_pool2d has already been solved on the master branch of pytorch 👌 |
@frgfm the failing tests are related:
This seems similar to what we had before. I think pytorch/pytorch#51675 only fixed this if the |
@pmeier Mmmh weird, locally I'm not getting this error. It's probably because I'm running not running pytorch from source. And for the mypy test, I only have those with my proposal:
and if I exchanged the order with the I'm not sure I understand the CI error though: is it suggesting to put the type comment after the |
What version of
Right now the unittests succeed, but |
You're right, I'm running the latest stable version 1.7.1 at the moment
Thanks! Considering pytorch/pytorch#51675 was merged only 7 days ago into master, I'm not sure whether torchvision CI uses a source build of pytorch or a nightly release, but we might have to wait a bit to run those tests successfully 🤷♂️ |
As the name implies, the nightly build is done once per day. Thus if this was merged two or more days ago, we should be fine. The problem at hand is that now If this goes through you can revert your latest change. In a quick search I couldn't find if this is intended behavior of |
Hi @pmeier, From what I can see in the issue you opened, the problem is still ongoing? |
@frgfm At least it is not fixed yet. Let me ping someone there to get an update. |
FYI I just pinged the assignee in the corresponding issue, let's hope we get an update soon 🤞 |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/3395
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Unrelated FailureAs of commit a0c4a85 with merge base 75046bd (): NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Codecov Report
@@ Coverage Diff @@
## main #3395 +/- ##
=======================================
Coverage ? 74.82%
=======================================
Files ? 105
Lines ? 9719
Branches ? 1562
=======================================
Hits ? 7272
Misses ? 1960
Partials ? 487 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Quick update here: the only problem left is the inability to ignore type-redef mentioned above. Keen to hear if you have any idea! |
Following up on #3029, this PR introduces the following modifications:
torchvision.models.densenet
Please note that there is still an error related to a typing issue in torch (adaptive pooling), I'll check with them if this has been solved.
Any feedback is welcome!
cc @pmeier