Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gramalingam committed Dec 23, 2024
1 parent 9a4a58e commit 766791d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion onnxscript/rewriter/_ir_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def is_singleton_value(
return expected == scalar
# rtol must be specified for float comparison
assert rtol is not None
return math.isclose(scalar, expected, rtol=rtol)
return math.isclose(scalar, expected, rel_tol=rtol)


def has_rank(value: ir.Value | None, rank: int) -> bool:
Expand Down
2 changes: 2 additions & 0 deletions onnxscript/rewriter/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,8 @@ def _multi_match(self, candidate: Iterable[ir.Node], check_removable: bool) -> M
Args:
candidate: An iterable of nodes that will be matched against the pattern output nodes.
check_removable: If True, check that the matched nodes can be removed (that is, that
they are not used elsewhere in the graph).
"""
match = self._match
for pattern_node, node in zip(self.pattern.output_nodes, candidate):
Expand Down

0 comments on commit 766791d

Please sign in to comment.