viable/strict/1792365816: [3/N] Refactor `TestAOTAutogradDevice` and enable for XPU (#196443)
- PyTorch 近 90 天出现 2518 次
- PyTorch 近 90 天第 2485 次发版
- 上一次:同一天稍早 · viable/strict/1792363846
发生了什么
replace unittest.skipIf with onlyAccelerator remove hardcoded cuda devices use parametrization via device parameter migrate XPU specific changes add allow_xpu=True instantiate the WithDynamo / WithCache variants per device as well instantiate_device_type_tests() only collects tests from generic_test_class.__dict__ and then deletes them from that class, so the TestAOTAutogradDeviceWithDynamo / TestAOTAutogradDeviceWi…
摘要按规则整理自下方来源原文