From e6cca187d64bcf21eea98660a125b01689b1c2bf Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Thu, 14 Feb 2019 16:41:07 +0100 Subject: [PATCH] Enable TFLite post-training quantization Fixes #1850 --- DeepSpeech.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeepSpeech.py b/DeepSpeech.py index 0f3f5d9f..b51ad05d 100755 --- a/DeepSpeech.py +++ b/DeepSpeech.py @@ -808,6 +808,7 @@ def export(): self.output_arrays = output_names self.output_file = output_tflite_path self.output_format = 'TFLITE' + self.post_training_quantize = True default_empty = [ 'inference_input_type', @@ -818,7 +819,6 @@ def export(): 'change_concat_input_ranges', 'allow_custom_ops', 'converter_mode', - 'post_training_quantize', 'dump_graphviz_dir', 'dump_graphviz_video' ]