Skip to content

Conversation

@zxd1997066
Copy link
Contributor

For #2917, This PR is targeted to port test/quantization/test_quant_api.py and test/quantization/test_qat.py to intel XPU.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 18, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 079d4b3 with merge base 1b80794 (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 Nov 18, 2025
@zxd1997066
Copy link
Contributor Author

cc @liangan1

# TODO: put this in a common test utils file
_CUDA_IS_AVAILABLE = torch.cuda.is_available()
_GPU_IS_AVAILABLE = torch.accelerator.is_available()
_DEVICE = get_current_accelerator_device()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Directly use "_DEVICE is None" in the following changes? No need to define _GPU_IS_AVAILABLE.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@liangan1 liangan1 added xpu Intel XPU related features topic: for developers Use this tag if this PR is mainly developer facing ciflow/xpu label used to trigger xpu CI jobs labels Nov 18, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 18, 2025

To add the ciflow label ciflow/xpu please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

@pytorch-bot pytorch-bot bot removed the ciflow/xpu label used to trigger xpu CI jobs label Nov 18, 2025
@liangan1 liangan1 added the ciflow/xpu label used to trigger xpu CI jobs label Nov 18, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 18, 2025

To add the ciflow label ciflow/xpu please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

@pytorch-bot pytorch-bot bot removed the ciflow/xpu label used to trigger xpu CI jobs label Nov 18, 2025
@liangan1 liangan1 added the ciflow/xpu label used to trigger xpu CI jobs label Nov 18, 2025
@liangan1 liangan1 requested a review from jerryzh168 November 18, 2025 07:13
@liangan1 liangan1 merged commit 8d546c8 into pytorch:main Nov 18, 2025
28 checks passed
@liangan1 liangan1 mentioned this pull request Nov 18, 2025
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/xpu label used to trigger xpu CI jobs CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: for developers Use this tag if this PR is mainly developer facing xpu Intel XPU related features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants