Skip to content

Conversation

avikchaudhuri
Copy link
Contributor

@avikchaudhuri avikchaudhuri commented Aug 21, 2025

Summary: This PR introduces shape guards to export. Previously only value ranges, equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603

cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta @ezyang @msaroufim @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv @voznesenskym @penguinwu @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @Lucaskabela

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 21, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161178

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit bbf4196 with merge base a92773e (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Aug 26, 2025
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603
@pytorch-bot pytorch-bot bot added oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: quantization release notes category labels Aug 26, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Aug 27, 2025
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Aug 27, 2025
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Aug 27, 2025
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603
@avikchaudhuri avikchaudhuri added the suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) label Aug 27, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Sep 6, 2025
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Reviewed By: tugsbayasgalan

Differential Revision: D80713603
avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Sep 7, 2025
Summary:

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Reviewed By: tugsbayasgalan

Differential Revision: D80713603
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Sep 7, 2025
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Reviewed By: tugsbayasgalan

Differential Revision: D80713603
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Sep 7, 2025
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Reviewed By: tugsbayasgalan

Differential Revision: D80713603
@avikchaudhuri avikchaudhuri force-pushed the export-D80713603 branch 2 times, most recently from 16b9872 to 49b65ca Compare September 8, 2025 15:48
avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Sep 8, 2025
Summary:

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Reviewed By: tugsbayasgalan

Differential Revision: D80713603
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

avikchaudhuri added a commit to avikchaudhuri/pytorch that referenced this pull request Sep 8, 2025
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Reviewed By: tugsbayasgalan

Differential Revision: D80713603
Summary:
Pull Request resolved: pytorch#161178

This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Reviewed By: tugsbayasgalan

Differential Revision: D80713603
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80713603

@avikchaudhuri
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Summary: This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603

Pull Request resolved: pytorch#161178
Approved by: https://github.com/tugsbayasgalan
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
Summary: This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603

Pull Request resolved: pytorch#161178
Approved by: https://github.com/tugsbayasgalan
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
Summary: This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603

Pull Request resolved: pytorch#161178
Approved by: https://github.com/tugsbayasgalan
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
Summary: This PR introduces shape guards to export. Previously only value ranges,  equalities, and specializations would be tracked for symbolic expressions, and we had a forward hook to check them. Instead now we create a function to check shape guards and call it in the exported program.

Test Plan:
updated several tests

Rollback Plan:

Differential Revision: D80713603

Pull Request resolved: pytorch#161178
Approved by: https://github.com/tugsbayasgalan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request fb-exported fx Merged module: dynamo module: inductor oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: export release notes: inductor (aoti) release notes: quantization release notes category suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants