-
- Downloads
Quantizer: Specify # bias bits + custom overrides (BREAKING) (#178)
* Bias handling: * Add 'bits_bias' parameter to explicitly specify # of bits for bias, similar to weights and activations. * BREAKING: Remove the now redundant 'quantize_bias' boolean parameter * Custom overrides: * Expand the semantics of the overrides dict to allow overriding of other parameters in addition to bit-widths * Functions registered in the quantizer's 'replacement_factory' can define keyword arguments. Non bit-width entries in the overrides dict will be checked against the function signature and passed * BREAKING: * Changed the name of 'bits_overrides' to simply 'overrides' * Bit-width overrides must now be defined using the full parameter names - 'bits_activations/weights/bias' instead of the short-hands 'acts' and 'wts' which were used so far. * Added/updated relevant tests * Modified all quantization YAMLs under 'examples' to reflect these changes * Updated docs
Showing
- distiller/config.py 3 additions, 23 deletionsdistiller/config.py
- distiller/quantization/clipped_linear.py 15 additions, 12 deletionsdistiller/quantization/clipped_linear.py
- distiller/quantization/quantizer.py 70 additions, 42 deletionsdistiller/quantization/quantizer.py
- distiller/quantization/range_linear.py 21 additions, 12 deletionsdistiller/quantization/range_linear.py
- distiller/utils.py 23 additions, 0 deletionsdistiller/utils.py
- docs-src/docs/algo_quantization.md 1 addition, 0 deletionsdocs-src/docs/algo_quantization.md
- docs-src/docs/design.md 3 additions, 3 deletionsdocs-src/docs/design.md
- docs-src/docs/schedule.md 21 additions, 20 deletionsdocs-src/docs/schedule.md
- docs/algo_quantization.html 1 addition, 0 deletionsdocs/algo_quantization.html
- docs/design.html 3 additions, 3 deletionsdocs/design.html
- docs/index.html 1 addition, 1 deletiondocs/index.html
- docs/schedule.html 21 additions, 20 deletionsdocs/schedule.html
- docs/search/search_index.json 1 addition, 1 deletiondocs/search/search_index.json
- docs/sitemap.xml 17 additions, 17 deletionsdocs/sitemap.xml
- docs/sitemap.xml.gz 0 additions, 0 deletionsdocs/sitemap.xml.gz
- examples/quantization/post_train_quant/resnet18_imagenet_post_train.yaml 9 additions, 9 deletions...zation/post_train_quant/resnet18_imagenet_post_train.yaml
- examples/quantization/quant_aware_train/alexnet_bn_dorefa.yaml 9 additions, 9 deletions...les/quantization/quant_aware_train/alexnet_bn_dorefa.yaml
- examples/quantization/quant_aware_train/preact_resnet18_imagenet_dorefa.yaml 9 additions, 9 deletions...on/quant_aware_train/preact_resnet18_imagenet_dorefa.yaml
- examples/quantization/quant_aware_train/preact_resnet20_cifar_pact.yaml 9 additions, 9 deletions...ization/quant_aware_train/preact_resnet20_cifar_pact.yaml
- examples/quantization/quant_aware_train/preact_resnet_cifar_dorefa.yaml 9 additions, 9 deletions...ization/quant_aware_train/preact_resnet_cifar_dorefa.yaml
This diff is collapsed.
No preview for this file type
Please register or sign in to comment