Skip to content

Commit 30e4b09

Browse files
authored
[mlir][sparse] try fix flanky test. (#71845)
1 parent 553ae2f commit 30e4b09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_block_matmul.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module {
5757

5858
func.func @mul(%arg0: tensor<4x6xf64>,
5959
%arg1: tensor<4x6xf64, #BSR>) -> tensor<4x4xf64> {
60-
%out = tensor.empty() : tensor<4x4xf64>
60+
%out = arith.constant dense<0.0> : tensor<4x4xf64>
6161
%0 = linalg.generic #trait_mul
6262
ins(%arg0, %arg1: tensor<4x6xf64>, tensor<4x6xf64, #BSR>)
6363
outs(%out: tensor<4x4xf64>) {
@@ -71,7 +71,7 @@ func.func @mul(%arg0: tensor<4x6xf64>,
7171

7272
func.func @mul_dense(%arg0: tensor<4x6xf64>,
7373
%arg1: tensor<4x6xf64>) -> tensor<4x4xf64> {
74-
%out = tensor.empty() : tensor<4x4xf64>
74+
%out = arith.constant dense<0.0> : tensor<4x4xf64>
7575
%0 = linalg.generic #trait_mul
7676
ins(%arg0, %arg1: tensor<4x6xf64>, tensor<4x6xf64>)
7777
outs(%out: tensor<4x4xf64>) {

0 commit comments

Comments
 (0)