Skip to content

Commit 0dbc14c

Browse files
author
xuzhenqi
committed
Add comment
1 parent 2476fbc commit 0dbc14c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

onnxscript/rewriter/pattern.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@ def _match_node(self, pattern_node: NodePattern, node: ir.Node) -> bool:
959959

960960
self._matched[pattern_node] = node
961961

962+
# Note: Need to revisit this to handle optional trailing inputs better.
962963
if len(node.inputs) != len(pattern_node.inputs):
963964
return self.fail("Input nums mismatch. {len(node.inputs)} vs {len(pattern_node.inputs)}")
964965

0 commit comments

Comments
 (0)