We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461e3e3 commit 12fdbaeCopy full SHA for 12fdbae
tensorflow_model_optimization/python/examples/quantization/keras/mnist_cnn_cont_quant.py
@@ -134,7 +134,7 @@ def calibration_gen():
134
converter = tf.lite.TFLiteConverter.from_keras_model(model)
135
136
converter.representative_dataset = calibration_gen
137
-converter._experimental_new_quantizer = True # pylint: disable=protected-access
+converter.experimental_new_quantizer = True
138
converter.target_spec.supported_ops = [
139
tf.lite.OpsSet.TFLITE_BUILTINS_INT8
140
] # to enable post-training quantization with the representative dataset
0 commit comments