Skip to content

Commit 4419f27

Browse files
author
xuzhenqi
committed
Fix lint errors
Signed-off-by: xuzhenqi <[email protected]>
1 parent 07bad1e commit 4419f27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

onnxscript/rewriter/pattern.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,11 @@ 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.
962+
# Note: Need to revisit this to handle optional trailing inputs better.
963963
if len(node.inputs) != len(pattern_node.inputs):
964-
return self.fail("Input nums mismatch. {len(node.inputs)} vs {len(pattern_node.inputs)}")
964+
return self.fail(
965+
"Input nums mismatch. {len(node.inputs)} vs {len(pattern_node.inputs)}"
966+
)
965967

966968
for arg_value, arg_pattern in zip(node.inputs, pattern_node.inputs):
967969
# arg_pattern could be a Var, if it's the original arg.

0 commit comments

Comments
 (0)