Skip to content

Commit be565c7

Browse files
committed
fix tests
1 parent 04877c5 commit be565c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/test/Dialect/Tensor/canonicalize.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ func.func @infer_src_shape_pack(%src: tensor<?x?x?x?xf32>, %dest: tensor<10x20x3
822822
// CHECK-LABEL: func.func @infer_src_shape_pack
823823
// CHECK-SAME: %[[SRC:[0-9a-zA-Z]+]]
824824
// CHECK-SAME: %[[DEST:[0-9a-zA-Z]+]]
825-
// CHECK: %[[CAST_SRC:.+]] = tensor.cast %[[SRC]] : tensor<?x?x?x?xf32> to tensor<30x20x?x10xf32>
825+
// CHECK: %[[CAST_SRC:.+]] = tensor.cast %[[SRC]] : tensor<?x?x?x?xf32> to tensor<40x20x?x30xf32>
826826
// CHECK: %[[PACK:.+]] = tensor.pack %[[CAST_SRC]] {{.+}} into %[[DEST]]
827827
// CHECK: return %[[PACK]]
828828

@@ -841,9 +841,9 @@ func.func @infer_dest_shape_pack(%src: tensor<30x20x?x10xf32>, %dest: tensor<?x?
841841
// CHECK-LABEL: func.func @infer_dest_shape_pack
842842
// CHECK-SAME: %[[SRC:[0-9a-zA-Z]+]]
843843
// CHECK-SAME: %[[DEST:[0-9a-zA-Z]+]]
844-
// CHECK: %[[CAST_DEST:.+]] = tensor.cast %[[DEST]] : tensor<?x?x?x?x16xf32> to tensor<10x20x30x?x16xf32>
844+
// CHECK: %[[CAST_DEST:.+]] = tensor.cast %[[DEST]] : tensor<?x?x?x?x16xf32> to tensor<?x20x10x30x16xf32>
845845
// CHECK: %[[PACK:.+]] = tensor.pack %[[SRC]] {{.+}} into %[[CAST_DEST]]
846-
// CHECK: %[[CAST_PACK:.+]] = tensor.cast %[[PACK]] : tensor<10x20x30x?x16xf32> to tensor<?x?x?x?x16xf32>
846+
// CHECK: %[[CAST_PACK:.+]] = tensor.cast %[[PACK]] : tensor<?x20x10x30x16xf32> to tensor<?x?x?x?x16xf32>
847847
// CHECK: return %[[CAST_PACK]]
848848

849849
// -----

0 commit comments

Comments
 (0)