I have been trying to use a pretrained model from tensorflow.keras library – which is MobileNet
If I try to quantize it using
tfmot.quantization.keras.quantize_model(base_model)
It gives me an error stating – “‘to_quantize` can only either be a keras Sequential or Functional model.”
I have tried using the example on the official docs but that doesn’t work either. Link –
https://www.tensorflow.org/model_optimization/guide/quantization/training_example
Thanks in advance for helping out!…..:)
New contributor
Ayush Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.