MatchingTracer

class onnxscript.rewriter.pattern.MatchingTracer[source]

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

This is used to track the best matches found for each rule, and to report the results at the end of the matching.

property best_matches_map: dict[_rewrite_rule.RewriteRule, list[MatchInfo]]
log(rule: _rewrite_rule.RewriteRule, container: ir.Graph | ir.Function, node: ir.Node, match_result: MatchResult, status: MatchStatus) None[source]
report() None[source]