Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhenqi committed Oct 8, 2024
1 parent 2476fbc commit 0dbc14c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onnxscript/rewriter/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ def _match_node(self, pattern_node: NodePattern, node: ir.Node) -> bool:

self._matched[pattern_node] = node

# Note: Need to revisit this to handle optional trailing inputs better.

Check warning

Code scanning / lintrunner

EDITORCONFIG-CHECKER/editorconfig Warning

Trailing whitespace

Check warning

Code scanning / lintrunner

RUFF/W291 Warning

if len(node.inputs) != len(pattern_node.inputs):
return self.fail("Input nums mismatch. {len(node.inputs)} vs {len(pattern_node.inputs)}")

Check warning on line 964 in onnxscript/rewriter/pattern.py

View check run for this annotation

Codecov / codecov/patch

onnxscript/rewriter/pattern.py#L964

Added line #L964 was not covered by tests

Expand Down

0 comments on commit 0dbc14c

Please sign in to comment.