From f194e00a108f0cf38ec8fe5e1d553837620d6947 Mon Sep 17 00:00:00 2001 From: "G. Ramalingam" Date: Fri, 26 Apr 2024 12:49:39 -0700 Subject: [PATCH] Update onnxscript/rewriter/pattern.py Co-authored-by: Ti-Tai Wang --- onnxscript/rewriter/pattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)