viable/strict/1791304443: [Test] Refactored test_swa_utils.py to have hw_classification (#192378)
- PyTorch: 1965 events in the last 90 days
- PyTorch: 1939th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1791287563: [inductor-perf] allow fusion into template epilogue inputs. (#198809)
What happened
Summary Apply hardware classification structure following #186918 guidelines. Changes: Split TestSWAUtils into TestSWAUtilsGeneric (GENERIC, 4 tests) + TestSWAUtils (ACCELERATOR, 5 tests) - Split TestSWAUtils because @onlyCPU tests never use the device parameter and test pure CPU-side logic with no accelerator involvement. Move SWATestDNN and SWATestCNN to module level (shared by both classes) Remove @onlyCPU decora…
Summary assembled by rule from the sources below