-
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
Fixed typing exception throwing issues with JIT #3029
Conversation
I'm still getting the following error with mypy:
But I'm not very knowledgeable on JIT overlead decorator. Should we accept that some mypy tests fail? Or is there a way around this without having JIT issues? @fmassa @pmeier |
Sort of. I suggest we simply exclude You can include [mypy-torchvision.models.densenet.*]
ignore_errors=True into the |
Alright, it should be good to go now 👌 |
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.
Thanks!
* refactor: Fixed typing exception throwing issues with JIT * style: Added back mypy typing to forward * chore: Added back densenet module as mypy exception
* refactor: Fixed typing exception throwing issues with JIT * style: Added back mypy typing to forward * chore: Added back densenet module as mypy exception
@frgfm Do you want to have another go at this as pytorch/pytorch#51675 fixed the behavior of |
@pmeier Thanks for the mention! Yes, it would be bad karma for me to leave this unfinished haha |
As per #3027, some JIT issues were introduced in #2860 with typing, that weren't caught initially by tests.
This PR addresses the issues related to the densenet module.
This PR should close #3027