--fusion_switch_file

Description

Sets the directory (including the file name) of the fusion switch configuration file for graph fusion and UB fusion patterns. You can disable selected fusion patterns in the configuration file.

See Also

None

Arguments

Argument: Directory of the fusion switch configuration file, including the file name.

Format: The directory (including the file name) can contain letters, digits, underscores (_), hyphens (-), periods (.), and Chinese characters.

Restrictions: This option is required if you want to use the model quantized by the Ascend Model Compression Toolkit (AMCT) for operator accuracy comparison. Configure this file to disable the fusion function.

Suggestions and Benefits

None

Examples

The following is an example of the configuration file. (fusion_switch.cfg is used as an example file name.) The field before the colon (:) indicates the fusion pattern name, and the field after the colon indicates the switch status of the fusion pattern. For details about the configuration file, see the Graph Fusion and UB Fusion Patterns.

RequantFusionPass:off
TbeConvDequantVaddReluQuantFusionPass:off
TbeConvDequantQuantFusionPass:off
TbePool2dQuantFusionPass:off

Upload the configured fusion_switch.cfg file to any directory on the server where the AOE is located. In the following command, /home/Davinci/ is used as an example.

--fusion_switch_file=/home/Davinci/fusion_switch.cfg

Dependencies and Restrictions

If the value of the group attribute of the Convolution operator in the network model is equal to the value of the num_output attribute in the prototxt file, RequantFusionPass in the preceding configuration file must be enabled.