Disabling Fusion

Fusion is enabled by default to improve computing efficiency and performance. However, it is possible that a fusion operator on your network is not yet covered by the current implementation.

If the inference accuracy meets requirements after the fusion function is disabled, submit the error operator to technical support, who will add implementation support to your operator as soon as possible. After obtaining the logs, click here to contact technical support.

  1. Include the --fusion_switch_file option in your atc command line.

    Example:

    --fusion_switch_file=$HOME/module/fusion_switch.cfg
    Upload the configuration file (for example, fusion_switch.cfg) to any directory on the server installed with the ATC tool. The following is an example of the file content.
    {
        "Switch":{
            "GraphFusion":{
                "ALL":"off"
            },
            "UBFusion":{
                "ALL":"off"
             }
        }
    }

    For details about this parameter, see --fusion_switch_file in ATC Instructions.

  2. Run inference on the new OM.

Before contacting technical support, set the DUMP_GE_GRAPH and DUMP_GRAPH_LEVEL environment variables, convert the model again, and dump graphs in each phase during model conversion. For details about the environment variables and graph description, see Dump Graph Details in ATC Instructions.