<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/model-optimization/blob/v0.8.1/tensorflow_model_optimization/python/core/api/quantization/keras/quantizers/__init__.py) |

Module containing Quantization abstraction and quantizers.

## Classes

[`class AllValuesQuantizer`](https://www.tensorflow.org/model_optimization/api_docs/python/tfmot/quantization/keras/quantizers/AllValuesQuantizer): Quantize tensor based on min/max of tensor values across all batches.

[`class FixedQuantizer`](https://www.tensorflow.org/model_optimization/api_docs/python/tfmot/quantization/keras/quantizers/FixedQuantizer): Quantize tensor based on min/max of tensor values with the fixed range.

[`class LastValueQuantizer`](https://www.tensorflow.org/model_optimization/api_docs/python/tfmot/quantization/keras/quantizers/LastValueQuantizer): Quantize tensor based on range the last batch of values.

[`class MovingAverageQuantizer`](https://www.tensorflow.org/model_optimization/api_docs/python/tfmot/quantization/keras/quantizers/MovingAverageQuantizer): Quantize tensor based on a moving average of values across batches.

[`class Quantizer`](https://www.tensorflow.org/model_optimization/api_docs/python/tfmot/quantization/keras/quantizers/Quantizer): ABC interface which encapsulates the logic of how to quantize tensors.