get_registered_pass_by_descriptor_key

Applicable Products

All processors

Function Usage

Obtains the registered pass descriptor based on the descriptor key.

Prototype

1
get_registered_pass_by_descriptor_key(descriptor_key: str) -> Optional[PassDescriptor]

Parameters

Parameter

Input/Output

Description

descriptor_key

Input

Pass descriptor key, which is a string in the format of {module_name}:{class_name}:{pass_name}.

Returns

Type

Description

Optional[PassDescriptor]

The matched PassDescriptor object. If no object is found, None is returned.

Restrictions

None