Skip to content

Commit

Permalink
Update onnxscript/rewriter/pattern.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ti-Tai Wang <[email protected]>
  • Loading branch information
gramalingam and titaiwangms authored Apr 26, 2024
1 parent e33331c commit f194e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxscript/rewriter/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def match_scalar(self, scalar_value):
# the Constant node in the return_value list. However, we don't do that.
# Instead, we will rely on DCE to remove the constant node if it is not
# used elsewhere.
return MatchResult(status)
return MatchResult(success=status)

def matches(self, value: ir.Value, model: ir.Model):
value = _ir_utils.propagate_const_value(value)
Expand Down

0 comments on commit f194e00

Please sign in to comment.