Created
October 16, 2020 08:12
-
-
Save Rishit-dagli/3cb4f479f6f2b07069a2f5f73902f3a8 to your computer and use it in GitHub Desktop.
Full integer quantization TFLite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8] | |
converter.inference_input_type = tf.uint8 | |
converter.inference_output_type = tf.uint8 | |
tflite_model_quant = converter.convert() | |
tflite_model_quant_file = "model.tflite" | |
tflite_model_quant_file.write_bytes(tflite_model_quant) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment