docstr: Runs PCQAT as CQAT if the input model is not pruned.
docstr_tok: ["Runs","PCQAT","as","CQAT","if","the","input","model","is","not","pruned","."]
code: def testPassingNonPrunedModelToPCQAT(self):
      """Runs PCQAT as CQAT if the input model is not pruned."""
      preserve_sparsity = False
      clustered_model = self._get_clustered_model(preserve_sparsity)
  
      clustered_model = cluster.strip_clustering(clustered_model)
      nr_of_unique_weights_after = self._get_number_of_unique_weights(
          clustered_model, 0, "kernel"
      )
  
      # Check after plain clustering, if there are no zero weights,
      # PCQAT falls back to CQAT
      quant_aware_annotate_model = quantize.quantize_annotate_model(
          clustered_model
      )
  
      quant_aware_model = quantize.quantize_apply(
          quant_aware_annotate_model,
          scheme=default_8bit_cluster_preserve_quantize_scheme.Default8BitClusterPreserveQuantizeScheme(
              True
          ),
      )
  
      self.compile_and_fit(quant_aware_model)
      stripped_pcqat_model = strip_clustering_cqat(quant_aware_model)
  
      # Check the unique weights of clustered_model and pcqat_model
      num_of_unique_weights_pcqat = self._get_number_of_unique_weights(
          stripped_pcqat_model, 1, "kernel"
      )
      self.assertAllEqual(
          nr_of_unique_weights_after, num_of_unique_weights_pcqat
      )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.clustering.keras import cluster
  from tensorflow_model_optimization.python.core.clustering.keras import cluster_config
  from tensorflow_model_optimization.python.core.clustering.keras.experimental import cluster
  from tensorflow_model_optimization.python.core.quantization.keras import quantize
  from tensorflow_model_optimization.python.core.quantization.keras.collab_opts.cluster_preserve import default_8bit_cluster_preserve_quantize_scheme
  from tensorflow_model_optimization.python.core.quantization.keras.collab_opts.cluster_preserve.cluster_utils import strip_clustering_cqat
label_desc: Use image node_id 17 for calling the ClusterPreserveIntegrationTest obj's underlying member method code with example usage: obj.testPassingNonPrunedModelToPCQAT() without return types