REGISTER_SCOPE_FUSION_PASS

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Registers a Scope fused operator.

Prototype

1
REGISTER_SCOPE_FUSION_PASS(pass_name, scope_pass, is_general)

Parameters

Parameter

Input/Output

Description

pass_name

Input

Fused operator name

scope_pass

Input

Pointer to the fused operator object

is_general

Input

true: The pattern is a general fusion pattern that takes effect by default.

false: The pattern is a non-general fusion pattern that does not take effect by default.

Restrictions

The is_general parameter can only be set to true or false. If it is set to other values, the rule may not take effect as expected.

Other Associated Macros

The following macros are associated with REGISTER_SCOPE_FUSION_PASS and can be ignored.

REGISTER_SCOPE_FUSION_PASS_UNIQ_HELPER

REGISTER_SCOPE_FUSION_PASS_UNIQ