Skip to content

Conversation

@jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Dec 3, 2025

Summary:
We want to remove pt2e quant code from pytorch and the constant folding test actually uses the pytorch pt2e quant APIs, so we will move the test to torchao instead, it's also going to just test the torchao version of constant fold: https://github.com/pytorch/ao/blob/main/torchao/quantization/pt2e/constant_fold.py

original test: https://github.com/pytorch/pytorch/blob/7a1e316115fc6996b3f2336822ba5d5f6179f0c3/test/export/test_passes.py#L1440

Test Plan:
python test/quantization/pt2e/test_quantize_pt2e.py -k test_constant_folding_pass

Reviewers:

Subscribers:

Tasks:

Tags:

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 3, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 912f150 with merge base 4c16ab8 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 3, 2025
Summary:
We want to remove pt2e quant code from pytorch and the constant folding
test actually uses the pytorch pt2e quant APIs, so we will move the
test to torchao instead, it's also going to just test the torchao
version of constant fold: https://github.com/pytorch/ao/blob/main/torchao/quantization/pt2e/constant_fold.py

Test Plan:
python test/quantization/pt2e/test_quantize_pt2e.py -k test_constant_folding_pass

Reviewers:

Subscribers:

Tasks:

Tags:
@jerryzh168 jerryzh168 force-pushed the add-constant-fold-test branch from 8c9f11c to 912f150 Compare December 3, 2025 03:58
@jerryzh168 jerryzh168 added the topic: not user facing Use this tag if you don't want this PR to show up in release notes label Dec 3, 2025
@jerryzh168 jerryzh168 merged commit cb67b03 into pytorch:main Dec 3, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing Use this tag if you don't want this PR to show up in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants