REGISTER_SCOPE_FUSION_PASS

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

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