If you have scripts to evaluate floating point model, like the models in
Xilinx Modelzoo. Apply the following two changes to evaluate
the quantized model.
- Add
“from tensorflow.contrib import decent_q”
in front of the float evaluation script. This will register the quantize operation. - Replace the float model path in the scripts to quantization
output model
"quantize_results/quantize_eval_model.pb"
.