-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Enable Profile-Directed Typing in torch.jit.script #62420
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
Conversation
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 1987994 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This 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 to the (internal) Dr. CI Users group. |
4ee2ac6
to
4041da5
Compare
Should we consider finishing all the clean ups before merging APIs? |
I don't think we should wait. Because the clean ups are independent of the API merge. They should not be affected. |
torch/jit/_script.py
Outdated
for examples in example_inputs: | ||
obj(*examples) | ||
else: | ||
warnings.warn("Error: Unable to infer types. Please format the inputs to type `List[Tuple]`" |
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.
Consider changing these warnings into errors because these errors would make torch.jit.script
not perform what the caller is asking for
@nikithamalgifb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
449ddc9
to
df840b8
Compare
@nikithamalgifb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Codecov Report
@@ Coverage Diff @@
## master #62420 +/- ##
==========================================
- Coverage 66.79% 66.74% -0.06%
==========================================
Files 695 695
Lines 90833 90823 -10
==========================================
- Hits 60670 60617 -53
- Misses 30163 30206 +43 |
@nikithamalgifb merged this pull request in 510d2ec. |
Merge
torch.jit.script
andtorch.jit._script_pdt
API. This PR merges profile directed typing with script api