EnableIrAttrMatch

Applicable Products

All processors

Header File/Library File

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

Function Usage

Configures the IR attribute and value matching capability of PatternMatcher.

After this function is called, PatternMatcher strictly compares the Intermediate Representation (IR) attributes carried by nodes in the pattern during graph matching, including the number of attribute names, attribute name list, and attribute values.

Prototype

1
PatternMatcherConfigBuilder &EnableIrAttrMatch()

Parameters

None

Returns

A reference to PatternMatcherConfigBuilder, enabling cascading calls of member functions.

Restrictions

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.