class_docstr: Default 8 bit Cluster Preserve Quantization Scheme.
class_docstr_tok: ["Default","8","bit","Cluster","Preserve","Quantization","Scheme","."]
docstr: Same as Default8BitQuantizeScheme but preserves clustering and sparsity.
  
  Args:
    preserve_sparsity: the flag to enable prune-cluster-preserving QAT.
docstr_tok: ["Same","as","Default8BitQuantizeScheme","but","preserves","clustering","and","sparsity",".","Args",":","preserve_sparsity",":","the","flag","to","enable","prune-cluster-preserving","QAT","."]
code: def __init__(self, preserve_sparsity=True):
      """Same as Default8BitQuantizeScheme but preserves clustering and sparsity.
  
      Args:
        preserve_sparsity: the flag to enable prune-cluster-preserving QAT.
      """
      self.preserve_sparsity = preserve_sparsity
  
imports: from tensorflow_model_optimization.python.core.quantization.keras.collab_opts.cluster_preserve import cluster_preserve_quantize_registry
  from tensorflow_model_optimization.python.core.quantization.keras.default_8bit import default_8bit_quantize_scheme
label_desc: Use image node_id 1 to create a new Default8BitClusterPreserveQuantizeScheme object from inherited base classes: default_8bit_quantize_scheme with example: obj = Default8BitClusterPreserveQuantizeScheme(preserve_sparsity)