-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix https://github.com/pytorch/pytorch/issues/114892 #115054
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
Fix https://github.com/pytorch/pytorch/issues/114892 #115054
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/115054
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 92c64b4 with merge base 9cc040f ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
from torch._dynamo.source import ConstantSource | ||
if isinstance(x, int): | ||
# We always specialize on scalar values in export. | ||
if aot_config.is_export: |
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.
Does export want to do this unconditionally? Or do we (or in the future want to) provide a way for export users to mark scalar inputs as dynamic
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.
We want to support symint inputs eventually (maybe next half?)
@pytorchbot merge -f "Unrelated lint" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
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.
Thank you! It would be great if we had an issue to track the "provide a way for export users to mark scalar inputs as dynamic" :)
Pull Request resolved: pytorch#115054 Approved by: https://github.com/bdhirsh
Stack from ghstack (oldest at bottom):