[Mlir-commits] [mlir] [mlir][tosa] Add accumulator verifier for FP8 types for AvgPool2D (PR #134727)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Apr 7 13:51:24 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
index 80bcc7a61..1b73158cd 100644
--- a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
+++ b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
@@ -604,7 +604,7 @@ LogicalResult tosa::AvgPool2dOp::verify() {
llvm::isa<Float8E4M3FNType>(inputETy)) &&
!accType.isF16())
return emitOpError("accumulator type for f8 tensor is not f16");
-
+
if (inputETy != inputZpETy)
return emitOpError("expect both input and its zero point are the same "
"element type, got ")
``````````
</details>
https://github.com/llvm/llvm-project/pull/134727
More information about the Mlir-commits
mailing list