IsEnableConstValueMatch

Applicable Products

All processors

Header File/Library File

  • Header file: #include <ge/fusion/pattern_matcher_config.h>
  • Library file: libge_compiler.so

Function Usage

Queries whether the Const value matching capability is enabled.

Prototype

1
bool IsEnableConstValueMatch() const

Parameters

None

Returns

Bool type.

  • If true is returned, the pattern matcher matches the tensor values carried by the constants defined in the pattern. A match is found only if the values are the same.
  • If false is returned, the constant nodes are not involved in the matching.

Restrictions

Binary matching, a strict matching mode (for floating-point data types), is used. If the result is not as expected, disable this function and process the value verification logic in the pass.