After QAT training with tensorflow_model_optimization followed the tutorial
then use Keras to load the quantized model will show Unknown layer: QuantizeLayer
tf.keras.models.load_model(keras_quantized_model_file)
After QAT training with tensorflow_model_optimization followed the tutorial
then use Keras to load the quantized model will show Unknown layer: QuantizeLayer
tf.keras.models.load_model(keras_quantized_model_file)
Copyright © 2021 Jogjafile Inc.
The problem solved by the following code: