EnableConstValueMatch

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

Enables const value matching.

If this function is enabled, the pattern matcher matches the tensor carried by const/constant defined in the pattern. The matching is successful only when the values for tensors are the same.

Prototype

1
PatternMatcherConfigBuilder &EnableConstValueMatch()

Parameters

None

Returns

PatternMatcherConfigBuilder &, allowing cascading calls to member functions.

Constraints

Binary matching, a strict matching mode is used. If the result is not as expected, disable this function and process the value verification logic in the pass.