From aee1fca2517b8bff3b18e3b01beaafe8d57a7dd8 Mon Sep 17 00:00:00 2001 From: "Xida Ren (Cedar)" Date: Wed, 10 Jan 2024 17:24:37 -0500 Subject: [PATCH] Minor typo fix: in not implemented message for the exclusive and reverse attributes for cumsum (#2740) --- lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp b/lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp index 5b957c53f9dc..2cfc9940a940 100644 --- a/lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp +++ b/lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp @@ -952,11 +952,11 @@ void mlir::torch::onnx_c::populateDefaultDomainAtoF( int64_t exclusive; int64_t reverse; // if bind succeeds and either is set, fail because not implemented - if (binder.s64IntegerAttr(exclusive, "exclusive", 0)) + if (!binder.s64IntegerAttr(exclusive, "exclusive", 0)) if (exclusive != 0) return rewriter.notifyMatchFailure( binder.op, "unsupported onnx.CumSum conversion: exclusive"); - if (binder.s64IntegerAttr(reverse, "reverse", 0)) + if (!binder.s64IntegerAttr(reverse, "reverse", 0)) if (reverse != 0) return rewriter.notifyMatchFailure( binder.op, "unsupported onnx.CumSum conversion: reverse");