mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: This change adds in input_type_to_index mappings to the backend patterns for `nn.functional.linear`, `nn.functional.conv1d`, `nn.functional.conv1d`, and `nn.functional.conv3d`. This let's us remove `WEIGHT_INDEX_DICT` and `BIAS_INDEX_DICT` from `prepare.py`. Instead we pass around `backend_config` and check wether an arg is weight/bias agains that config Test Plan: ``` python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps ``` Reviewers: @andrewor14 Subscribers: Tasks: Tags: quant, fx Differential Revision: [D38705516](https://our.internmc.facebook.com/intern/diff/D38705516) Pull Request resolved: https://github.com/pytorch/pytorch/pull/83263 Approved by: https://github.com/andrewor14 |
||
|---|---|---|
| .. | ||
| _dbr | ||
| backend_config | ||
| experimental | ||
| fx | ||
| __init__.py | ||
| _correct_bias.py | ||
| _equalize.py | ||
| _learnable_fake_quantize.py | ||
| _quantize_dbr.py | ||
| fake_quantize.py | ||
| fuse_modules.py | ||
| fuser_method_mappings.py | ||
| observer.py | ||
| pattern.md | ||
| qconfig_mapping_utils.py | ||
| qconfig_mapping.py | ||
| qconfig.py | ||
| quant_type.py | ||
| quantization_mappings.py | ||
| quantization_types.py | ||
| quantize_fx.py | ||
| quantize_jit.py | ||
| quantize.py | ||
| stubs.py | ||
| utils.py | ||