[Mlir-commits] [mlir] 4f38f06 - [mlir][tosa] Add i32 to supported quantized type

Rob Suderman llvmlistbot at llvm.org
Tue Sep 28 15:05:36 PDT 2021


Author: Rob Suderman
Date: 2021-09-28T15:04:39-07:00
New Revision: 4f38f0640dd727740cd027f9b178fb9f5ca0406f

URL: https://github.com/llvm/llvm-project/commit/4f38f0640dd727740cd027f9b178fb9f5ca0406f
DIFF: https://github.com/llvm/llvm-project/commit/4f38f0640dd727740cd027f9b178fb9f5ca0406f.diff

LOG: [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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
index 02129a5f1bcca..f9cb12b208646 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
@@ -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.


        


More information about the Mlir-commits mailing list