How to change bias scale in Tflite model?

I have Tflite model and I can not perform inference for this model. Error is related with diff_scale / output_scale < 0.02. I want to try to change the bias scale in some layers.

Could you give me advice to change the bias scale in the Tflite model?

Hi @Hot_Ice ,

This error indicates a quantization issue might be due to the difference between the input and output scales of a layer being too small. Usually, changing the bias scale is not possible. If you haven’t already, take into account PTQ for more precise quantization during conversion, use tf.lite.TFLiteConverter.from_saved_model to specify a representative dataset. If the problem still persists please share reproducible code with us for analyzing the issue.

Thank You