pytorch/torch/ao/quantization
Yuanyuan Chen a60d9e1f6d Fix flake8 B028 warnings (#166224)
This PR fixes flake8 B028 warning by specifying stacklevel=2 in `warnings.warn`. The advantage is that users can know more contextual information about PyTorch warnings.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166224
Approved by: https://github.com/ezyang
2025-10-26 06:18:55 +00:00
..
backend_config Revert "[Code Clean] Clean asserts in torch/ao/quantization (root, quantizer, backend_config) (#165433)" 2025-10-21 22:10:19 +00:00
experimental Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
fx Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00
pt2e Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
quantizer Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00
__init__.py Revert "[Code Clean] Clean asserts in torch/ao/quantization (root, quantizer, backend_config) (#165433)" 2025-10-21 22:10:19 +00:00
_correct_bias.py [BE]: Apply ruff PERF403 to use dict comprehensions more often (#149257) 2025-03-18 00:46:07 +00:00
_equalize.py Revert "[Code Clean] Clean asserts in torch/ao/quantization (root, quantizer, backend_config) (#165433)" 2025-10-21 22:10:19 +00:00
_learnable_fake_quantize.py Revert "[Code Clean] Clean asserts in torch/ao/quantization (root, quantizer, backend_config) (#165433)" 2025-10-21 22:10:19 +00:00
fake_quantize.py Revert "[Code Clean] Clean asserts in torch/ao/quantization (root, quantizer, backend_config) (#165433)" 2025-10-21 22:10:19 +00:00
fuse_modules.py PEP585 update - torch/ao/quantization (#145140) 2025-01-19 10:20:00 +00:00
fuser_method_mappings.py Revert "[Code Clean] Clean asserts in torch/ao/quantization (root, quantizer, backend_config) (#165433)" 2025-10-21 22:10:19 +00:00
observer.py Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00
pattern.md
qconfig_mapping.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
qconfig.py Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00
quant_type.py
quantization_mappings.py Revert "[Code Clean] Clean asserts in torch/ao/quantization (root, quantizer, backend_config) (#165433)" 2025-10-21 22:10:19 +00:00
quantize_fx.py [BE][13/16] fix typos in torch/ (torch/ao/) (#156603) 2025-06-29 04:34:04 +00:00
quantize_jit.py Revert "[Code Clean] Clean asserts in torch/ao/quantization (root, quantizer, backend_config) (#165433)" 2025-10-21 22:10:19 +00:00
quantize_pt2e.py [BE][13/16] fix typos in torch/ (torch/ao/) (#156603) 2025-06-29 04:34:04 +00:00
quantize.py Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00
stubs.py [BE][PYFMT] migrate PYFMT for torch/ao/ to ruff format (#148185) 2025-06-14 16:47:04 +00:00
utils.py Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00