[mlir][tosa] Add i32 to supported quantized type

Quantized int type should include I32 types as its the output of a quantizd
convolution or matmul operation.

Reviewed By: NatashaKnk

Differential Revision: https://reviews.llvm.org/D110651
This commit is contained in:
Rob Suderman 2021-09-28 14:53:07 -07:00
parent f9b3c18e74
commit 4f38f0640d
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ def Tosa_Int32Or64 : AnyTypeOf<[Tosa_Int32,
def Tosa_QuantizedInt : AnyTypeOf<[ Tosa_QuantizedType<"uint8", [8], 0>,
Tosa_QuantizedType<"int4", [4, 0], 1>,
Tosa_QuantizedType<"int8", [8, 0], 1>,
Tosa_QuantizedType<"int16", [16, 0], 1>]>;
Tosa_QuantizedType<"int16", [16, 0], 1>,
Tosa_QuantizedType<"int32", [32, 0], 1>]>;
//===----------------------------------------------------------------------===//
// Floating-point types.