aclopSetCompileFlag

Description

Sets the operator compilation mode, either non-fuzzy compilation or fuzzy compilation. This setting takes effect globally at the process level.

In non-fuzzy compilation mode, the system performs compilation based on the user-defined shape without any escape. However, this flag is invalid for AI CPU operators.

In fuzzy compilation mode, the system generalizes the runtime dimensions of dynamic-shape operators before compilation.

Restrictions

Prototype

aclError aclopSetCompileFlag(aclOpCompileFlag flag)

Parameters

Parameter

Input/Output

Description

flag

Input

Compilation mode flag, either non-fuzzy compilation or fuzzy compilation.

Defaults to the non-fuzzy compilation mode.

Returns

0 on success; else, failure.