-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Fix LLONG_MIN
errors in torch.jit.script
#153793
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/153793
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Merge Blocking SEVsThere is 1 active merge blocking SEVs. Please view them below:
If you must merge, use ❌ 1 New Failure, 5 Cancelled Jobs, 15 Unrelated FailuresAs of commit 1bf8c10 with merge base 1075bb3 ( NEW FAILURE - The following job has failed:
CANCELLED JOBS - The following jobs were cancelled. Please retry:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot label "topic: not user facing" |
I am a little reluctant to merge this because TS is in maintenance mode, and I cannot tell that this is obviously safe. Here is what O3 thinks, and I think the added suggested tests are enough due diligence: Below is a “safety audit” style review of the UnaryOpCombiner pass and the new test. I’ve focused on semantic-level corner cases rather than style/nit comments. 1. What the patch actually changes
2. Edge-case behaviours worth checking
5. Overall risk assessment
With those guards in place, the pass looks safe to merge. |
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Convert
ast.UnaryOp
to aast.Constant
node if the operand is a numericast.Constant
.Fixes #153722