PatternMatcher¶ class onnxscript.rewriter.pattern.PatternMatcher(pattern: GraphPattern)[source]¶ abstract match(model: Model, graph_or_function: Graph | Function, node: Node, *, verbose: int = 0, remove_nodes: bool = True, tracer: MatchingTracer | None = None) → MatchResult[source]¶ Match the pattern against the subgraph ending at the given node.