Skip to content

Commit 138a32c

Browse files
committed
[mlir][tosa] Add missing int16 extension for concat operator
Signed-off-by: Jerry Ge <[email protected]> Change-Id: Idff47f7fc9ecd799113b6409279fbd5a0f38e9f4
1 parent f7aea4d commit 138a32c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ def Tosa_ConcatOp : Tosa_InferTensorTypeOp<"concat"> {
18821882

18831883
list<Availability> availability = [
18841884
Profile<[Tosa_PRO_INT, Tosa_PRO_FP]>,
1885-
Extension<[Tosa_EXT_FP8E4M3, Tosa_EXT_FP8E5M2, Tosa_EXT_BF16]>,
1885+
Extension<[Tosa_EXT_FP8E4M3, Tosa_EXT_FP8E5M2, Tosa_EXT_BF16, Tosa_EXT_INT16]>,
18861886
];
18871887

18881888
let hasCanonicalizer = 1;

mlir/test/Dialect/Tosa/availability.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ func.func @test_reduce_sum(%arg0: tensor<13x21x3xf32>) -> tensor<1x21x3xf32> {
507507
// CHECK-LABEL: concat
508508
func.func @test_concat(%arg0: tensor<13x21x3xf32>, %arg1: tensor<13x21x3xf32>) -> tensor<26x21x3xf32> {
509509
// CHECK: profiles: [ [pro_int, pro_fp] ]
510-
// CHECK: extensions: [ [fp8e4m3, fp8e5m2, bf16] ]
510+
// CHECK: extensions: [ [fp8e4m3, fp8e5m2, bf16, int16] ]
511511
%0 = tosa.concat %arg0, %arg1 {axis = 0 : i32} : (tensor<13x21x3xf32>, tensor<13x21x3xf32>) -> tensor<26x21x3xf32>
512512
return %0 : tensor<26x21x3xf32>
513513
}

0 commit comments

Comments
 (0)