viable/strict/1788272892: [Test] Generalize `test_mkldnn.py` tests and enable on XPU (#191740)
- PyTorch 近 90 天出现 361 次
- PyTorch 近 90 天第 358 次发版
- 上一次:同一天稍早 · viable/strict/1788270630
发生了什么
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…
摘要按规则整理自下方来源原文