@@ -1827,7 +1827,7 @@ func.func @unpack_invalid_outer_dims_perm(%source: tensor<128x256xf32>, %dest: t
18271827
18281828func.func @pack_with_artificial_padding (%input: tensor <9 xf32 >, %output: tensor <3 x8 xf32 >) -> tensor <3 x8 xf32 > {
18291829 %cst = arith.constant 0.0 : f32
1830- // expected-error@+1 {{expected 'tensor<2x8xf32>' for the unpacked domain value, got 'tensor<3x8xf32>'}}
1830+ // expected-error@+1 {{expected 'tensor<2x8xf32>' for the packed domain value, got 'tensor<3x8xf32>'}}
18311831 %0 = linalg.pack %input padding_value (%cst : f32 ) inner_dims_pos = [0 ]
18321832 inner_tiles = [8 ] into %output
18331833 : tensor <9 xf32 > -> tensor <3 x8 xf32 >
@@ -1839,23 +1839,23 @@ func.func @pack_with_artificial_padding(%input: tensor<9xf32>, %output: tensor<3
18391839// The outer dims in the output tensor are incorrectly/unexpectedly transposed.
18401840// This could be fixed by adding `outer_dims_perm = [1, 0]` (the default value assumes no transpose).
18411841func.func @pack_invalid_result_shape (%input: tensor <256 x128 xf32 >, %output: tensor <4 x16 x32 x16 xf32 >) -> tensor <4 x16 x32 x16 xf32 > {
1842- // expected-error@+1 {{expected 'tensor<16x4x32x16xf32>' for the unpacked domain value, got 'tensor<4x16x32x16xf32>'}}
1842+ // expected-error@+1 {{expected 'tensor<16x4x32x16xf32>' for the packed domain value, got 'tensor<4x16x32x16xf32>'}}
18431843 %0 = linalg.pack %input inner_dims_pos = [1 , 0 ] inner_tiles = [32 , 16 ] into %output : tensor <256 x128 xf32 > -> tensor <4 x16 x32 x16 xf32 >
18441844 return %0 : tensor <4 x16 x32 x16 xf32 >
18451845}
18461846
18471847// -----
18481848
18491849func.func @pack_invalid_result_shape (%input: tensor <256 x128 xf32 >, %output: tensor <8 x7 x16 x32 xf32 >) -> tensor <8 x7 x16 x32 xf32 > {
1850- // expected-error@+1 {{expected 'tensor<8x8x16x32xf32>' for the unpacked domain value, got 'tensor<8x7x16x32xf32>'}}
1850+ // expected-error@+1 {{expected 'tensor<8x8x16x32xf32>' for the packed 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_dropping_tiles (%input: tensor <3 x8 xf32 >, %output: tensor <9 xf32 >) -> tensor <9 xf32 > {
1858- // expected-error@+1 {{expected 'tensor<2x8xf32>' for the unpacked domain value, got 'tensor<3x8xf32>'}}
1857+ func.func @unpack_with_artifical_tiles_that_are_dropped (%input: tensor <3 x8 xf32 >, %output: tensor <9 xf32 >) -> tensor <9 xf32 > {
1858+ // expected-error@+1 {{expected 'tensor<2x8xf32>' for the packed 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 >
18611861 return %0 : tensor <9 xf32 >
@@ -1864,7 +1864,7 @@ func.func @unpack_with_dropping_tiles(%input: tensor<3x8xf32>, %output: tensor<9
18641864// -----
18651865
18661866func.func @unpack_invalid_source_shape (%output: tensor <256 x128 xf32 >, %input: tensor <8 x8 x4 x32 xf32 >) -> tensor <256 x128 xf32 > {
1867- // expected-error@+1 {{expected 'tensor<8x32x4x32xf32>' for the unpacked domain value, got 'tensor<8x8x4x32xf32>'}}
1867+ // expected-error@+1 {{expected 'tensor<8x32x4x32xf32>' for the packed 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 >
18701870}
0 commit comments