[Mlir-commits] [mlir] 2b5ac43 - [mlir][tosa] Update RFFT2D description to align with TOSA v1.0 spec (#129789)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Mar 4 17:18:00 PST 2025


Author: Jerry-Ge
Date: 2025-03-05T01:17:56Z
New Revision: 2b5ac43359645fe3921fd8dedd93b59a8442cd9c

URL: https://github.com/llvm/llvm-project/commit/2b5ac43359645fe3921fd8dedd93b59a8442cd9c
DIFF: https://github.com/llvm/llvm-project/commit/2b5ac43359645fe3921fd8dedd93b59a8442cd9c.diff

LOG: [mlir][tosa] Update RFFT2D description to align with TOSA v1.0 spec (#129789)

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 8362092021b0b..0541bc7f97642 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -372,8 +372,10 @@ def Tosa_RFFT2dOp : Tosa_InferShapedTypeOp<"rfft2d", [
     the input tensor consists of real values producing complex valued output. The
     complex output values will be split into the output_real and output_imag
     tensor arguments. RFFT2D takes advantage of Hermitian symmetry to only
-    calculate the first half of the final output axis. Imaginary values with
-    locations (0,0), (0,W/2), (H/2,0) and (H/2,W/2) are zero.
+    calculate the first half of the final output axis. Implementations may choose
+    to skip calculation of the imaginary values at (0,0), (0,W/2), (H/2,0), and
+    (H/2, W/2). If the calculation is skipped, the result at that location must be
+    zero.
 
     Example:
 


        


More information about the Mlir-commits mailing list