[Mlir-commits] [mlir] 30e4b09 - [mlir][sparse] try fix flanky test. (#71845)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Nov 9 11:11:02 PST 2023
Author: Peiming Liu
Date: 2023-11-09T11:10:59-08:00
New Revision: 30e4b09d49af28bfa3abad3d38291506b9706b11
URL: https://github.com/llvm/llvm-project/commit/30e4b09d49af28bfa3abad3d38291506b9706b11
DIFF: https://github.com/llvm/llvm-project/commit/30e4b09d49af28bfa3abad3d38291506b9706b11.diff
LOG: [mlir][sparse] try fix flanky test. (#71845)
Added:
Modified:
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_block_matmul.mlir
Removed:
################################################################################
diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_block_matmul.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_block_matmul.mlir
index 52a698e79086b22..7e9c0ae71a7b7e6 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_block_matmul.mlir
+++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_block_matmul.mlir
@@ -57,7 +57,7 @@ module {
func.func @mul(%arg0: tensor<4x6xf64>,
%arg1: tensor<4x6xf64, #BSR>) -> tensor<4x4xf64> {
- %out = tensor.empty() : tensor<4x4xf64>
+ %out = arith.constant dense<0.0> : tensor<4x4xf64>
%0 = linalg.generic #trait_mul
ins(%arg0, %arg1: tensor<4x6xf64>, tensor<4x6xf64, #BSR>)
outs(%out: tensor<4x4xf64>) {
@@ -71,7 +71,7 @@ func.func @mul(%arg0: tensor<4x6xf64>,
func.func @mul_dense(%arg0: tensor<4x6xf64>,
%arg1: tensor<4x6xf64>) -> tensor<4x4xf64> {
- %out = tensor.empty() : tensor<4x4xf64>
+ %out = arith.constant dense<0.0> : tensor<4x4xf64>
%0 = linalg.generic #trait_mul
ins(%arg0, %arg1: tensor<4x6xf64>, tensor<4x6xf64>)
outs(%out: tensor<4x4xf64>) {
More information about the Mlir-commits
mailing list