[Mlir-commits] [mlir] [mlir][tosa] Fix comments format(NFC) (PR #124520)
Longsheng Mou
llvmlistbot at llvm.org
Mon Jan 27 00:11:32 PST 2025
https://github.com/CoTinker created https://github.com/llvm/llvm-project/pull/124520
This PR corrects the formatting of comments in Markdown. The previous format was as follows:
https://mlir.llvm.org/docs/Dialects/TOSA/#tosaerf-mlirtosaerfop

https://mlir.llvm.org/docs/Dialects/TOSA/#tosarescale-mlirtosarescaleop

>From ec6560550e0ebc7caee543d9f333377387b27eaf Mon Sep 17 00:00:00 2001
From: Longsheng Mou <longshengmou at gmail.com>
Date: Mon, 27 Jan 2025 16:03:17 +0800
Subject: [PATCH] [mlir][tosa] Fix comments format(NFC)
---
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td | 35 ++++++++++----------
1 file changed, 17 insertions(+), 18 deletions(-)
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
index 92ab729f5b933a..2186510e7db1e1 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -454,7 +454,7 @@ def Tosa_ErfOp : Tosa_ElementwiseUnaryOp<"erf"> {
let summary = "Computes gauss error function of input";
let description = [{
- Gauss error function: $ erf(x) = \frac{2}{\sqrt(\pi)} \int_{0}^{x} e^{-t^2} \,dt $
+ Gauss error function: $ erf(x) = \frac{2}{\sqrt(\pi)} \int_{0}^{x} e^{-t^2} \ dt $
For quantized integer data types, the TABLE operator should be used instead
with the following definition. The erf_table has 513 entries each of
16-bit/8-bit precision and covering the input range -4.0 to +4.0 in steps of 1/64.
@@ -1886,23 +1886,22 @@ def Tosa_RescaleOp: Tosa_Op<"rescale", [Pure,
let description = [{
Rescale quantized values into a new domain. Supported rescalings are:
- | Mode | Input | Output | Unsigned | Unsigned |
- | | | | input | output |
- |------------------------|-------|--------|----------|----------|
- | signed 8 to 8 | int8 | int8 | false | false |
- | signed 8 to 16 | int8 | int16 | false | false |
- | signed 8 to 32 | int8 | int32 | false | false |
- | signed 16 to 8 | int16 | int8 | false | false |
- | signed 16 to 16 | int16 | int16 | false | false |
- | signed 16 to 32 | int16 | int32 | false | false |
- | signed 32 to 8 | int32 | int8 | false | false |
- | signed 32 to 16 | int32 | int16 | false | false |
- | signed 32 to 32 | int32 | int32 | false | false |
- | signed 48 to 8 | int48 | int8 | false | false |
- | signed 48 to 16 | int48 | int16 | false | false |
- | signed 48 to 32 | int48 | int32 | false | false |
- | unsigned 8 to signed 8 | uint8 | int8 | true | false |
- | signed 8 to unsigned 8 | int8 | uint8 | false | true |
+ | Mode | Input | Output | Unsigned input | Unsigned output |
+ |------------------------|-------|--------|----------------|-----------------|
+ | signed 8 to 8 | int8 | int8 | false | false |
+ | signed 8 to 16 | int8 | int16 | false | false |
+ | signed 8 to 32 | int8 | int32 | false | false |
+ | signed 16 to 8 | int16 | int8 | false | false |
+ | signed 16 to 16 | int16 | int16 | false | false |
+ | signed 16 to 32 | int16 | int32 | false | false |
+ | signed 32 to 8 | int32 | int8 | false | false |
+ | signed 32 to 16 | int32 | int16 | false | false |
+ | signed 32 to 32 | int32 | int32 | false | false |
+ | signed 48 to 8 | int48 | int8 | false | false |
+ | signed 48 to 16 | int48 | int16 | false | false |
+ | signed 48 to 32 | int48 | int32 | false | false |
+ | unsigned 8 to signed 8 | uint8 | int8 | true | false |
+ | signed 8 to unsigned 8 | int8 | uint8 | false | true |
}];
let arguments = (ins
More information about the Mlir-commits
mailing list