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
| Parameter | Input/Output | Description |
|---|---|---|
| strategy | Input | Pass strategy name, for example, PVC2_OOO. |
| identifier | Input | Pass name, for example, ExpandFunction. |
| key | Input | PassConfigKey enumeration. KEY_DUMP_GRAPH: Dump the Pass computation graph. |
| value | Input | Value. |
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)