Skip to content

Commit 9930a5a

Browse files
authored
[mlir][tosa] Update document of tosa.rescale(NFC) (#112531)
This PR formats the `supported rescalings` using a table. The previous structure was disorganized, as seen in the documentation: https://mlir.llvm.org/docs/Dialects/TOSA/#tosarescale-mlirtosarescaleop.
1 parent f5aee1f commit 9930a5a

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,21 +1877,23 @@ def Tosa_RescaleOp: Tosa_Op<"rescale", [Pure,
18771877

18781878
let description = [{
18791879
Rescale quantized values into a new domain. Supported rescalings are:
1880-
Mode Input Output
1881-
signed 8 to 8 int8 int8
1882-
signed 8 to 16 int8 int16
1883-
signed 8 to 32 int8 int32
1884-
signed 16 to 8 int16 int8
1885-
signed 16 to 16 int16 int16
1886-
signed 16 to 32 int16 int32
1887-
signed 32 to 8 int32 int8
1888-
signed 32 to 16 int32 int16
1889-
signed 32 to 32 int32 int32
1890-
signed 48 to 8 int48 int8
1891-
signed 48 to 16 int48 int16
1892-
signed 48 to 32 int48 int32
1893-
unsigned 8 to signed 8 uint8 int8
1894-
signed 8 to unsigned 8 int8 uint8
1880+
1881+
| Mode | Input | Output |
1882+
|------------------------|-------|--------|
1883+
| signed 8 to 8 | int8 | int8 |
1884+
| signed 8 to 16 | int8 | int16 |
1885+
| signed 8 to 32 | int8 | int32 |
1886+
| signed 16 to 8 | int16 | int8 |
1887+
| signed 16 to 16 | int16 | int16 |
1888+
| signed 16 to 32 | int16 | int32 |
1889+
| signed 32 to 8 | int32 | int8 |
1890+
| signed 32 to 16 | int32 | int16 |
1891+
| signed 32 to 32 | int32 | int32 |
1892+
| signed 48 to 8 | int48 | int8 |
1893+
| signed 48 to 16 | int48 | int16 |
1894+
| signed 48 to 32 | int48 | int32 |
1895+
| unsigned 8 to signed 8 | uint8 | int8 |
1896+
| signed 8 to unsigned 8 | int8 | uint8 |
18951897
}];
18961898

18971899
let arguments = (ins

0 commit comments

Comments
 (0)