IsEnableConstValueMatch

Applicability

Product

Supported or Not

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

Header File/Library File

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

Function Usage

Returns whether const value matching is enabled.

Prototype

1
bool IsEnableConstValueMatch() const

Parameters

None

Returns

bool type. The value is

  • If true is returned, the pattern matcher matches the tensor values carried by const/constant defined in the pattern. A match is found only when the values are the same.
  • If false is returned, the const on the node is not involved in matching.

Constraints

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.