Thanks to visit codestin.com
Credit goes to github.com

Skip to content

shape guards#161178

Closed
avikchaudhuri wants to merge 1 commit into
pytorch:mainfrom
avikchaudhuri:export-D80713603
Closed

shape guards#161178
avikchaudhuri wants to merge 1 commit into
pytorch:mainfrom
avikchaudhuri:export-D80713603

Conversation

@avikchaudhuri
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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 6, 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
Copy Markdown
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
@facebook-github-bot
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@avikchaudhuri
Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Copy Markdown
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

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