viable/strict/1788272892: [Test] Generalize `test_mkldnn.py` tests and enable on XPU (#191740)
- PyTorch: 361 events in the last 90 days
- PyTorch: 358th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1788270630
What happened
This PR refactors and generalizes the test_mkldnn.py tests to support multiple accelerator devices (CUDA, XPU, etc.) instead of being hard-coded to CUDA. The changes extract device-dependent tests into a separate class and parameterize them to run on all supported devices. Changes/Commits: Cleanup TestMkldnn class: Remove obsolete empty lines Remove unused device arguments review can be brief, focusing on code organ…
Summary assembled by rule from the sources below