我有一个tflite文件,我想量化它。
如何将TFLite模型转换为量化的TFLite模型?
发布于 2020-10-15 22:14:14
根据您使用的是keras还是tfhub,您可以简单地执行以下操作(假设TF模型不支持量化)。
converter = tf.lite.TFLiteConverter.from_keras_model(non_qat_model)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
quantized_tflite_model = converter.convert()
你可以在这里进一步参考链接:https://www.tensorflow.org/lite/performance/post_training_quantization
https://stackoverflow.com/questions/64372279
复制相似问题