Repository navigation
[Test] Add HardwareClassification to TestModule and TestJitReplaceSubmodule - #191473
Closed
can-gaa-hou wants to merge 2 commits into
Closed
can-gaa-hou wants to merge 2 commits into
can-gaa-hou wants to merge 2 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/191473
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit ca0d030 with merge base fa4050d ( CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
fffrog
reviewed
Aug 6, 2026
can-gaa-hou
force-pushed
the
hw-classification-test-modules
branch
from
August 6, 2026 13:44
19d92c5 to
4df8154
Compare
Collaborator
Author
|
@pytorchbot rebase |
Collaborator
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Collaborator
|
Successfully rebased |
pytorchmergebot
force-pushed
the
hw-classification-test-modules
branch
from
August 8, 2026 08:57
4df8154 to
ca0d030
Compare
Collaborator
Author
|
@pytorchbot merge |
Collaborator
Merge startedYour 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 |
gavinwang269
pushed a commit
to gavinwang269/pytorch
that referenced
this pull request
Aug 13, 2026
…module (pytorch#191473) ## Summary pytorch#186918 introduced `hw_classification` (`GENERIC`/`ACCELERATOR`/`CPU`/`CUDA`/`MPS`/`XPU`) so tests can opt into `--hw-classification` filtering. `test_modules.py` predates that rollout and its two test classes were left unclassified. This annotates them, following the same convention already applied to other files (e.g. pytorch#190991). `TestModule` is instantiated via `instantiate_device_type_tests`, so it gets `ACCELERATOR`. `TestJitReplaceSubmodule` has no device/dtype parametrization and never touches an accelerator, so it gets `GENERIC`. Pull Request resolved: pytorch#191473 Approved by: https://github.com/fffrog, https://github.com/albanD
orrangetabby17
pushed a commit
to orrangetabby17/pytorch
that referenced
this pull request
Sep 2, 2026
…module (pytorch#191473) ## Summary pytorch#186918 introduced `hw_classification` (`GENERIC`/`ACCELERATOR`/`CPU`/`CUDA`/`MPS`/`XPU`) so tests can opt into `--hw-classification` filtering. `test_modules.py` predates that rollout and its two test classes were left unclassified. This annotates them, following the same convention already applied to other files (e.g. pytorch#190991). `TestModule` is instantiated via `instantiate_device_type_tests`, so it gets `ACCELERATOR`. `TestJitReplaceSubmodule` has no device/dtype parametrization and never touches an accelerator, so it gets `GENERIC`. Pull Request resolved: pytorch#191473 Approved by: https://github.com/fffrog, https://github.com/albanD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#186918 introduced
hw_classification(GENERIC/ACCELERATOR/CPU/CUDA/MPS/XPU) so tests can opt into--hw-classificationfiltering.test_modules.pypredates that rollout and its two test classes were left unclassified. This annotates them, following the same convention already applied to other files (e.g. #190991).TestModuleis instantiated viainstantiate_device_type_tests, so it getsACCELERATOR.TestJitReplaceSubmodulehas no device/dtype parametrization and never touches an accelerator, so it getsGENERIC.