Overview
A matched graph structure obtained on PatternMatcher. The results contain the matched nodes.
Header Files to Be Included
1 | #include <ge/fusion/match_result.h> |
Public Member Functions
MatchResult() explicit MatchResult(const Pattern *pattern) MatchResult(const MatchResult &other) noexcept MatchResult(MatchResult &&other) noexcept MatchResultt &operator=(const MatchResult &other) noexcept MatchResult &operator=(MatchResult &&other) noexcept Status AppendNodeMatchPair(const NodeIo &pattern_node_out,const NodeIo &matched_node_out) Status GetMatchedNode(const GNode &pattern_node, GNode &matched_node) const [[nodiscard]] std::vector<GNode> GetMatchedNodes() const Status GetCapturedTensor(size_t capture_idx, NodeIo &node_output) const [[nodiscard]] std::unique_ptr<SubgraphBoundary> ToSubgraphBoundary() const [[nodiscard]] AscendString ToAscendString() const
Parent topic: MatchResult