<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/quantization/keras/collab_opts/cluster_preserve/default_8bit_cluster_preserve_quantize_scheme.py#L23-L37) |

Default 8 bit Cluster Preserve Quantization Scheme.

Inherits From: [`Default8BitQuantizeScheme`](https://www.tensorflow.org/model_optimization/api_docs/python/tfmot/quantization/keras/default_8bit/Default8BitQuantizeScheme), [`QuantizeScheme`](https://www.tensorflow.org/model_optimization/api_docs/python/tfmot/quantization/keras/QuantizeScheme)

    tfmot.experimental.combine.Default8BitClusterPreserveQuantizeScheme(
        preserve_sparsity=True
    )

### Used in the notebooks

| Used in the guide |
|---|
| - [Cluster preserving quantization aware training (CQAT) Keras example](https://www.tensorflow.org/model_optimization/guide/combine/cqat_example) - [Sparsity and cluster preserving quantization aware training (PCQAT) Keras example](https://www.tensorflow.org/model_optimization/guide/combine/pcqat_example) |

<br />

<br />

<br />

| ## Args ||
|---|---|
| `preserve_sparsity` | the flag to enable prune-cluster-preserving QAT. |

<br />

## Methods

### `get_layout_transformer`

[View source](https://github.com/tensorflow/model-optimization/blob/v0.8.1/tensorflow_model_optimization/python/core/quantization/keras/default_8bit/default_8bit_quantize_scheme.py#L28-L30)

    get_layout_transformer()

Returns the layout transforms for this scheme.

<br />

<br />

<br />

| Returns ||
|---|---|
| Returns the QuantizeLayoutTransform for this quantization scheme. ||

<br />

### `get_quantize_registry`

[View source](https://github.com/tensorflow/model-optimization/blob/v0.8.1/tensorflow_model_optimization/python/core/quantization/keras/collab_opts/cluster_preserve/default_8bit_cluster_preserve_quantize_scheme.py#L35-L37)

    get_quantize_registry()

Returns the quantization registry for this scheme.

<br />

<br />

<br />

| Returns ||
|---|---|
| Returns the QuantizeRegistry for this quantization scheme. ||

<br />