← Back to events
ActiveAIRelease

viable/strict/1791304443: [Test] Refactored test_swa_utils.py to have hw_classification (#192378)

Photo: PyTorch Releases

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

Why it's spreading

Sources