Skip to content

Commit

Permalink
Update generic matcher for new parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gramalingam committed Dec 28, 2024
1 parent 766791d commit 2b5309a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions onnxscript/rewriter/generic_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,12 @@ def match(
graph_or_function: ir.Graph | ir.Function,
node: ir.Node,
verbose: int = 0,
remove_nodes: bool = True,
) -> orp.MatchResult | None:
if not remove_nodes:
raise NotImplementedError(
"remove_nodes=False is not implemented in GenericPatternMatcher"
)
del model
del graph_or_function
self.verbose = verbose
Expand Down

0 comments on commit 2b5309a

Please sign in to comment.