RegisterScopeFusionPass

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 fused operator.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

1
2
void RegisterScopeFusionPass(const std::string &pass_name, CreateFn create_fn, bool is_general);
void RegisterScopeFusionPass(const char_t *pass_name, CreateFn create_fn, bool is_general);

Parameters

Parameter

Input/Output

Description

pass_name

Input

Fused operator name

create_fn

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.

Returns

None

Restrictions

REGISTER_SCOPE_FUSION_PASS is called internally and is not directly called by users.