[Mlir-commits] [mlir] [mlir][tosa] Move ResizeOp shape checks from verifier to tosa-validate (PR #234101)
Luke Hutton
llvmlistbot at llvm.org
Fri Oct 23 01:26:50 PDT 2026
================
@@ -1135,6 +1143,10 @@ LogicalResult checkErrorIfResize(Operation *op) {
const int64_t scaleXN = scale[2];
const int64_t scaleXD = scale[3];
+ // ERROR_IF(scale <= 0)
+ if (llvm::any_of(scale, [](int64_t s) { return s <= 0; }))
+ return op->emitOpError("expect all scale values to be > 0, got ") << scale;
----------------
lhutton1 wrote:
Could we add a test for this?
https://github.com/llvm/llvm-project/pull/234101
More information about the Mlir-commits
mailing list