quic / aimet

AIMET is a library that provides advanced quantization and compression techniques for trained neural network models.
https://quic.github.io/aimet-pages/index.html
Other
2.11k stars 375 forks source link

AIMET1.25.0 keras QAT issue #2013

Open wangjun-0 opened 1 year ago

wangjun-0 commented 1 year ago

I try to use AIMET1.25.0 to quantize keras model by QAT, but I got the warning below:

WARNING:tensorflow:Model failed to serialize as JSON. Ignoring... maximum recursion depth exceeded tensorflow - WARNING - Model failed to serialize as JSON. Ignoring... maximum recursion depth exceeded Epoch 1/10 WARNING:tensorflow:Gradients do not exist for variables ['conv1_pad_input_quantizer_0.encoding_min:0', 'conv1_pad_input_quantizer_0.encoding_max:0', 'conv1_pad_output_quantizer_0.encoding_min:0', 'conv1_pad_output_quantizer_0.encoding_max:0', 'conv1_conv_input_quantizer_0.encoding_min:0', .....

After the warning, QAT is terminated.

How can I continue to do QAT?

quic-akhobare commented 1 year ago

Hi @wangjun-0 - could you share the full stack trace?

quic-mangal commented 6 months ago

Closing this issue due to inactivity. Please create a new one if you are still stuck.