Skip to content

Commit

Permalink
[mlir][tosa] Add i32 to supported quantized type
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rsuderman committed Sep 28, 2021
1 parent f9b3c18 commit 4f38f06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
Expand Up @@ -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.
Expand Down

0 comments on commit 4f38f06

Please sign in to comment.