tfmot.experimental.combine.strip_clustering_cqat
Strip clustering variables from the model.
tfmot.experimental.combine.strip_clustering_cqat(
to_strip
)
During cluster-preserve quantization aware training (CQAT), centroids,
cluster associations, and original weights are added to the training graph.
After the CQAT is done, these variables should be removed and the layer
with the clustered weights should be restored.
Returns |
A keras model or layer with clustering variables removed.
|
Raises |
ValueError
|
if the model is not a tf.keras.Model instance.
|
NotImplementedError
|
if the model is a subclassed model.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-26 UTC.
[null,null,["Last updated 2023-05-26 UTC."],[],[]]