pypto.set_pass_config

Applicable Products

  • Ascend 950PR/Ascend 950DT: Supported
  • Atlas A3 training products/Atlas A3 inference products: Supported
  • Atlas A2 training products/Atlas A2 inference products: Supported

Description

Modifies the configuration information of a specified Pass.

Prototype

set_pass_config(strategy: str, identifier: str, key: PassConfigKey, value: bool)

Parameters

ParameterInput/OutputDescription
strategyInputPass strategy name, for example, PVC2_OOO.
identifierInputPass name, for example, ExpandFunction.
keyInputPassConfigKey enumeration.
KEY_DUMP_GRAPH: Dump the Pass computation graph.
valueInputValue.

Return Value

None

Constraints

  • Setting timing: This API must be called before graph compilation starts.
  • Scope: The configuration information is global and affects all subsequent compilation processes.

Example

pypto.set_pass_config("PVC2_OOO", "ExpandFunction", pypto.PassConfigKey.KEY_DUMP_GRAPH, True)