RegisterScopeFusionPass

Description

Registers a fused operator.

Prototype

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

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.