@@ -1846,15 +1846,15 @@ func.func @pack_invalid_result_shape(%input: tensor<256x128xf32>, %output: tenso
1846
1846
1847
1847
// -----
1848
1848
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 > {
1850
1850
// expected-error@+1 {{expected 'tensor<8x8x16x32xf32>' for the unpacked domain value, got 'tensor<8x7x16x32xf32>'}}
1851
1851
%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 >
1852
1852
return %0 : tensor <8 x7 x16 x32 xf32 >
1853
1853
}
1854
1854
1855
1855
// -----
1856
1856
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 > {
1858
1858
// expected-error@+1 {{expected 'tensor<2x8xf32>' for the unpacked domain value, got 'tensor<3x8xf32>'}}
1859
1859
%0 = linalg.unpack %input inner_dims_pos = [0 ] inner_tiles = [8 ] into %output
1860
1860
: tensor <3 x8 xf32 > -> tensor <9 xf32 >
@@ -1863,7 +1863,7 @@ func.func @unpack_with_slicing_tiles(%input: tensor<3x8xf32>, %output: tensor<9x
1863
1863
1864
1864
// -----
1865
1865
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 > {
1867
1867
// expected-error@+1 {{expected 'tensor<8x32x4x32xf32>' for the unpacked domain value, got 'tensor<8x8x4x32xf32>'}}
1868
1868
%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 >
1869
1869
return %0 : tensor <256 x128 xf32 >
0 commit comments