viable/strict/1792365816: [3/N] Refactor `TestAOTAutogradDevice` and enable for XPU (#196443)
- PyTorch: 2507 events in the last 90 days
- PyTorch: 2474th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1792363846
What happened
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…
Summary assembled by rule from the sources below