onnxscript.rewriter.patternΒΆ

rewriter.pattern.Pattern

A pattern that can be matched against nodes in an ONNX graph.

rewriter.pattern.OpsetPatternBuilder

Represents an opset pattern and a pattern builder.

rewriter.pattern.MatchResult

The state object used by the pattern-matching algorithm.

rewriter.pattern.Constant

Represents a pattern that matches against a scalar constant value.

rewriter.pattern.OrValue

Creates an OR pattern.

rewriter.pattern.PatternMatcher

rewriter.pattern.SimplePatternMatcher

rewriter.pattern.RewriteRule

rewriter.pattern.RewriteRuleSet

rewriter.pattern.RewriteRuleClassBase

Base class for implementing rewrite rules as a class.

rewriter.pattern.MatchStatus

The status of a pattern-matching operation.

rewriter.pattern.MatchingTracer

A debugging helper class to trace the matching of a pattern against a graph.