@@ -1846,15 +1846,15 @@ func.func @pack_invalid_result_shape(%input: tensor<256x128xf32>, %output: tenso
18461846
18471847// -----
18481848
1849- func.func @pack_invalid (%input: tensor <256 x128 xf32 >, %output: tensor <8 x7 x16 x32 xf32 >) -> tensor <8 x7 x16 x32 xf32 > {
1849+ func.func @pack_invalid_result_shape (%input: tensor <256 x128 xf32 >, %output: tensor <8 x7 x16 x32 xf32 >) -> tensor <8 x7 x16 x32 xf32 > {
18501850 // expected-error@+1 {{expected 'tensor<8x8x16x32xf32>' for the unpacked domain value, got 'tensor<8x7x16x32xf32>'}}
18511851 %0 = linalg.pack %input inner_dims_pos = [1 , 0 ] inner_tiles = [16 , 32 ] into %output : tensor <256 x128 xf32 > -> tensor <8 x7 x16 x32 xf32 >
18521852 return %0 : tensor <8 x7 x16 x32 xf32 >
18531853}
18541854
18551855// -----
18561856
1857- func.func @unpack_with_slicing_tiles (%input: tensor <3 x8 xf32 >, %output: tensor <9 xf32 >) -> tensor <9 xf32 > {
1857+ func.func @unpack_with_dropping_tiles (%input: tensor <3 x8 xf32 >, %output: tensor <9 xf32 >) -> tensor <9 xf32 > {
18581858 // expected-error@+1 {{expected 'tensor<2x8xf32>' for the unpacked domain value, got 'tensor<3x8xf32>'}}
18591859 %0 = linalg.unpack %input inner_dims_pos = [0 ] inner_tiles = [8 ] into %output
18601860 : tensor <3 x8 xf32 > -> tensor <9 xf32 >
@@ -1863,7 +1863,7 @@ func.func @unpack_with_slicing_tiles(%input: tensor<3x8xf32>, %output: tensor<9x
18631863
18641864// -----
18651865
1866- func.func @unpack_invalid (%output: tensor <256 x128 xf32 >, %input: tensor <8 x8 x4 x32 xf32 >) -> tensor <256 x128 xf32 > {
1866+ func.func @unpack_invalid_source_shape (%output: tensor <256 x128 xf32 >, %input: tensor <8 x8 x4 x32 xf32 >) -> tensor <256 x128 xf32 > {
18671867 // expected-error@+1 {{expected 'tensor<8x32x4x32xf32>' for the unpacked domain value, got 'tensor<8x8x4x32xf32>'}}
18681868 %0 = linalg.unpack %input inner_dims_pos = [1 , 0 ] inner_tiles = [4 , 32 ] into %output : tensor <8 x8 x4 x32 xf32 > -> tensor <256 x128 xf32 >
18691869 return %0 : tensor <256 x128 xf32 >
0 commit comments