mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
Summary: Both test_quantized_tensor.py and test_quantize_fx.py had the same get_supported_device_types function defined. This PR refactors it into the common_quantization.py file for common usage Test Plan: ``` python test/test_quantization.py ``` Differential Revision: [D37173692](https://our.internmc.facebook.com/intern/diff/D37173692) Pull Request resolved: https://github.com/pytorch/pytorch/pull/79607 Approved by: https://github.com/jerryzh168