Minor typo fix: in not implemented message for the exclusive and reverse attributes for cumsum (#2740)

pull/2772/head
Xida Ren (Cedar) 2024-01-10 17:24:37 -05:00 committed by GitHub
parent 29569713f3
commit aee1fca251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -952,11 +952,11 @@ void mlir::torch::onnx_c::populateDefaultDomainAtoF(
int64_t exclusive; int64_t exclusive;
int64_t reverse; int64_t reverse;
// if bind succeeds and either is set, fail because not implemented // 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) if (exclusive != 0)
return rewriter.notifyMatchFailure( return rewriter.notifyMatchFailure(
binder.op, "unsupported onnx.CumSum conversion: exclusive"); binder.op, "unsupported onnx.CumSum conversion: exclusive");
if (binder.s64IntegerAttr(reverse, "reverse", 0)) if (!binder.s64IntegerAttr(reverse, "reverse", 0))
if (reverse != 0) if (reverse != 0)
return rewriter.notifyMatchFailure( return rewriter.notifyMatchFailure(
binder.op, "unsupported onnx.CumSum conversion: reverse"); binder.op, "unsupported onnx.CumSum conversion: reverse");