--quant_dumpable

Applicable Products

All processors

Description

Collects the dump data of the quantization operator.

When performing precision troubleshooting (see Accuracy Improvement Suggestions for Model Inference in Application Development (C & C++)), if you use an AMCT-quantized model, the inputs and outputs of quantization operators may be optimized during graph build when converting the model into an offline model. This affects the export of dump data for quantization operators. For example, the intermediate output between two quantized convolutions may be optimized to the quantized output of int8.

To address this issue, the --quant_dumpable option is introduced. When this option is configured, inputs and outputs of quantization operators are not fused, and transdata operators are inserted to restore the original model format, so that dump data of quantization operators can be collected.

Arguments

  • 0 (default): The inputs and outputs of the quantization operators may be optimized during graph build. In this case, the dump data of the quantization operators cannot be collected.
  • 1: Dump data of the quantization operators cannot be collected.

Suggestions and Benefits

If data dump is enabled, you are advised to set this option to 1 to ensure that the dump data of the quantization operator can be collected.

Example

--quant_dumpable=1