IsEnableIrAttrMatch

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Header File/Library File

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

Function Usage

Queries whether IR attribute and value matching is enabled.

Prototype

1
bool IsEnableIrAttrMatch() const

Parameters

None

Returns

Bool type.

  • If true is returned, the pattern matcher matches the IR attribute values carried by the nodes in the pattern.
  • If false is returned, the IR attributes on the 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.