[Mlir-commits] [mlir] 548f084 - [mlir][sparse] Enable the test for operator expm1.
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jun 1 11:18:22 PDT 2022
Author: bixia1
Date: 2022-06-01T11:18:17-07:00
New Revision: 548f0841cd42af2649d5acd3724ea7309cbdc0bb
URL: https://github.com/llvm/llvm-project/commit/548f0841cd42af2649d5acd3724ea7309cbdc0bb
DIFF: https://github.com/llvm/llvm-project/commit/548f0841cd42af2649d5acd3724ea7309cbdc0bb.diff
LOG: [mlir][sparse] Enable the test for operator expm1.
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D126732
Added:
Modified:
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_complex_ops.mlir
Removed:
################################################################################
diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_complex_ops.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_complex_ops.mlir
index 0fbb2b7800f76..fa3d4c62b82cf 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_complex_ops.mlir
+++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_complex_ops.mlir
@@ -99,10 +99,8 @@ module {
outs(%xv: tensor<?xcomplex<f64>, #SparseVector>) {
^bb(%a: complex<f64>, %x: complex<f64>):
%1 = complex.log1p %a : complex<f64>
- // TODO(bixia): Enable this line after adding complex.expm1 to
- // complex to standard lowering.
- // %2 = complex.expm1 %1 : complex<f64>
- linalg.yield %1 : complex<f64>
+ %2 = complex.expm1 %1 : complex<f64>
+ linalg.yield %2 : complex<f64>
} -> tensor<?xcomplex<f64>, #SparseVector>
return %0 : tensor<?xcomplex<f64>, #SparseVector>
}
@@ -225,12 +223,12 @@ module {
// CHECK-NEXT: 0.995055
// CHECK-NEXT: 0
call @dumpc(%3, %d3) : (tensor<?xcomplex<f64>, #SparseVector>, index) -> ()
- // CHECK-NEXT: 1.52361
- // CHECK-NEXT: 2.69061
- // CHECK-NEXT: 1.73287
- // CHECK-NEXT: 0.785398
- // CHECK-NEXT: 2.13833
- // CHECK-NEXT: 0.785398
+ // CHECK-NEXT: -5.13
+ // CHECK-NEXT: 2
+ // CHECK-NEXT: 3
+ // CHECK-NEXT: 4
+ // CHECK-NEXT: 5
+ // CHECK-NEXT: 6
call @dumpc(%4, %d3) : (tensor<?xcomplex<f64>, #SparseVector>, index) -> ()
// CHECK-NEXT: -2.565
// CHECK-NEXT: 1
More information about the Mlir-commits
mailing list