Skip to content

Commit 12fdbae

Browse files
liufengdbtensorflower-gardener
authored andcommitted
Make the experimental_new_quantizer flag to be public
PiperOrigin-RevId: 351421198
1 parent 461e3e3 commit 12fdbae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_model_optimization/python/examples/quantization/keras/mnist_cnn_cont_quant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def calibration_gen():
134134
converter = tf.lite.TFLiteConverter.from_keras_model(model)
135135

136136
converter.representative_dataset = calibration_gen
137-
converter._experimental_new_quantizer = True # pylint: disable=protected-access
137+
converter.experimental_new_quantizer = True
138138
converter.target_spec.supported_ops = [
139139
tf.lite.OpsSet.TFLITE_BUILTINS_INT8
140140
] # to enable post-training quantization with the representative dataset

0 commit comments

Comments
 (0)