[Mlir-commits] [mlir] d68505e - [mlir][tosa] Add `tosa.avg_pool2d_adaptive` purity note (#233473)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Oct 22 02:33:59 PDT 2026
Author: Luke Hutton
Date: 2026-10-22T10:33:54+01:00
New Revision: d68505e11d6753cb323a5e9176e71f9ff9cec1a4
URL: https://github.com/llvm/llvm-project/commit/d68505e11d6753cb323a5e9176e71f9ff9cec1a4
DIFF: https://github.com/llvm/llvm-project/commit/d68505e11d6753cb323a5e9176e71f9ff9cec1a4.diff
LOG: [mlir][tosa] Add `tosa.avg_pool2d_adaptive` purity note (#233473)
Similar to `tosa.avg_pool2d`, add a note about purity.
Added:
Modified:
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
index 6936578f63d36..7d79d7bcd1c64 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -170,6 +170,9 @@ def Tosa_AvgPool2dAdaptiveOp
average, only the number of valid input tensor values, but not padding, are
used to calculate the divisor. Compared to avg_pool2d, the kernel/stride/
pad values are provided as inputs.
+
+ This operation is not pure. Undefined behaviour may occur if the accumulated
+ result overflows.
}];
let arguments = (ins Tosa_Tensor4D:$input,
More information about the Mlir-commits
mailing list