[Mlir-commits] [mlir] [mlir][tosa] Align RFFT2d and FFT2d operator examples (PR #135261)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Apr 10 14:22:00 PDT 2025


https://github.com/Jerry-Ge created https://github.com/llvm/llvm-project/pull/135261

* Minor variable name alignment



>From 304268f041bfe07ea74315299189d4ab03e8bf99 Mon Sep 17 00:00:00 2001
From: Jerry Ge <jerry.ge at arm.com>
Date: Thu, 10 Apr 2025 14:19:22 -0700
Subject: [PATCH] [mlir][tosa] Align RFFT2d and FFT2d operator examples

* Minor variable name alignment

Signed-off-by: Jerry Ge <jerry.ge at arm.com>
Change-Id: I9bce7482725e0333f7d22365612949fbb484b976
---
 mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
index 40aa2898d6edd..964fa5943cd37 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -271,7 +271,7 @@ def Tosa_FFT2dOp : Tosa_InferShapedTypeOp<"fft2d", [
     Example:
 
     ```mlir
-     %out_real, %out_imag = tosa.fft2d %in_real, %in_imag : (tensor<8x9xf32>, tensor<8x9xf32>) -> (tensor<8x9xf32>, tensor<8x9xf32>)
+     %output_real, %output_imag = tosa.fft2d %input_real, %input_imag : (tensor<8x9xf32>, tensor<8x9xf32>) -> (tensor<8x9xf32>, tensor<8x9xf32>)
     ```
   }];
 
@@ -394,7 +394,7 @@ def Tosa_RFFT2dOp : Tosa_InferShapedTypeOp<"rfft2d", [
     Example:
 
     ```mlir
-     %real, %imag = tosa.rfft2d %in : (tensor<8x16xf32>) -> (tensor<8x9xf32>, tensor<8x9xf32>)
+     %ouput_real, %output_imag = tosa.rfft2d %input_real : (tensor<8x16xf32>) -> (tensor<8x9xf32>, tensor<8x9xf32>)
     ```
   }];
 



More information about the Mlir-commits mailing list