GetMatchedNode

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/match_result.h>
  • Library file: libge_compiler.so

Function Usage

Indicates the target node matched based on the pattern node.

Prototype

1
Status GetMatchedNode(const GNode &pattern_node, GNode &matched_node) const

Parameters

Parameter

Input/Output

Description

pattern_node

Input

A node in the pattern graph.

matched_node

Output

matched node.

Returns

Parameter

Type

Description

-

Status

SUCCESS: The matching succeeds.

FAILED: The matching fails.

Constraints

None