diff --git a/onnxscript/rewriter/pattern.py b/onnxscript/rewriter/pattern.py index 6459ae29c..e67650847 100644 --- a/onnxscript/rewriter/pattern.py +++ b/onnxscript/rewriter/pattern.py @@ -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)