Skip to content

Commit 1096d23

Browse files
committed
[mlir][tosa] Add uint16 to TOSA type support
UInt16 is included as a required TOSA type for basic operations. Added support as a TOSA Tensor. Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D141341
1 parent c0d7f0c commit 1096d23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Tosa_QuantizedType<string n, list<int> params, bit signed>
3939
//===----------------------------------------------------------------------===//
4040

4141
def Tosa_UInt8 : UI<8>;
42+
def Tosa_UInt16 : UI<16>;
4243

4344
def Tosa_Int8 : I<8>;
4445
def Tosa_Int16 : I<16>;
@@ -57,6 +58,7 @@ def Tosa_Bool : I<1>;
5758
// No unsigned unquantized int types.
5859
def Tosa_Int : AnyTypeOf<[Tosa_Bool,
5960
Tosa_UInt8,
61+
Tosa_UInt16,
6062
Tosa_SignedInt]>;
6163

6264
def Tosa_Int32Or64 : AnyTypeOf<[Tosa_Int32,

0 commit comments

Comments
 (0)