- Notifications
You must be signed in to change notification settings - Fork26.3k
Set non-strict export as default mode#148790
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
pytorch-botbot commentedMar 7, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
🔗 Helpful Links🧪 See artifacts and rendered test results athud.pytorch.org/pr/148790
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit20b836f with merge base924a247 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:This comment was automatically generated by Dr. CI and updates every 15 minutes. |
facebook-github-bot commentedMar 7, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 7, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 10, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 10, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 10, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 10, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 10, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 10, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
test/export/test_export_strict.py Outdated
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.
| # If user already specified strict, don't make itnon-strict | |
| # If user already specified strict, don't make it strict |
test/export/testing.py Outdated
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.
| # Controls tests generated in test/export/test_export_nonstrict.py | |
| # Controls tests generated in test/export/test_export_strict.py |
test/export/test_export.py Outdated
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.
why is this set to True?
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.
Because the un-modded (as in not a variant like retracability) test is not in non-strict mode, however some of the test cases like this one fails in non-strict. So I temporarily forced strict mode for them.
test/export/test_export.py Outdated
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.
Why does this error disappear now? Does this mean we should also have a variant that is Retraceability w/ Strict 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.
Ah, because of a bug in my code, I forgot to update the strict flag in retracing export call. Changed.
facebook-github-bot commentedMar 12, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 12, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 12, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 12, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 12, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
Summary:Pull Requestresolved:pytorch#148790- Flip the default value of strict argument in torch.export.export from True to False- Update test infra to cope with the change, some of them made the assumption of strict mode as default- Disabled some tests that fail in non-strict mode**If this diff breaks your test, please add `strict=True` to your torch.export.export callsite to mitigate**. DO NOT revert this diff.Test Plan: SandcastleReviewed By: angelayiDifferential Revision: D70228628
facebook-github-bot commentedMar 12, 2025
This pull request wasexported from Phabricator. Differential Revision:D70228628 |
facebook-github-bot commentedMar 12, 2025
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
pytorchmergebot commentedMar 12, 2025
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in thewiki. Questions? Feedback? Please reach out to thePyTorch DevX Team |
Uh oh!
There was an error while loading.Please reload this page.
Summary:
Test Plan: Sandcastle
Differential Revision: D70228628
cc@ezyang@gchanan