[JIT] Do not allow creating generics with None types#44958
[JIT] Do not allow creating generics with None types#44958malfet wants to merge 2 commits intopytorch:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #44958 +/- ##
=======================================
Coverage 67.83% 67.83%
=======================================
Files 384 384
Lines 50047 50047
=======================================
Hits 33950 33950
Misses 16097 16097 Continue to review full report at Codecov.
|
facebook-github-bot
left a comment
There was a problem hiding this comment.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
suo
left a comment
There was a problem hiding this comment.
python -c "import torch._C;print(torch._C.ListType(None))"
Can we add a line like this somewhere in our test suite? As well?
Otherwise, invoking something like `python -c "import torch._C;print(torch._C.ListType(None))"` will result in SIGSEGV Discovered while trying to create a torch script for function with the following type annotation `Tuple[int, Ellipsis] -> None`
3758087 to
977dd10
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
💊 CI failures summary and remediationsAs of commit 977dd10 (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 1 time. |
Summary: Otherwise, invoking something like `python -c "import torch._C;print(torch._C.ListType(None))"` will result in SIGSEGV Discovered while trying to create a torch script for function with the following type annotation `Tuple[int, Ellipsis] -> None` Pull Request resolved: pytorch#44958 Reviewed By: suo Differential Revision: D23799906 Pulled By: malfet fbshipit-source-id: 916a243007d13ed3e7a5b282dd712da3d66e3bf7
Otherwise, invoking something like
python -c "import torch._C;print(torch._C.ListType(None))"will result in SIGSEGVDiscovered while trying to create a torch script for function with the following type annotation
Tuple[int, Ellipsis] -> None