From 17ecc53bbc787814c5d410db81ca4d4b78cb64be Mon Sep 17 00:00:00 2001 From: Tian Jin Date: Tue, 24 Dec 2019 03:07:01 -0500 Subject: [PATCH] dbueg --- test/mlir/onnx/onnx_lowering.mlir | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/mlir/onnx/onnx_lowering.mlir b/test/mlir/onnx/onnx_lowering.mlir index 828fbbf..7b19d72 100644 --- a/test/mlir/onnx/onnx_lowering.mlir +++ b/test/mlir/onnx/onnx_lowering.mlir @@ -145,9 +145,9 @@ func @test_exp(%arg0 : tensor) -> tensor<*xf32> { // CHECK: return [[RES]] : memref } -// func @test_tanh(%arg0 : tensor) -> tensor<*xf32> { -// %0 = "onnx.Tanh"(%arg0) : (tensor) -> tensor<*xf32> -// "std.return"(%0) : (tensor<*xf32>) -> () +func @test_tanh(%arg0 : tensor) -> tensor<*xf32> { + %0 = "onnx.Tanh"(%arg0) : (tensor) -> tensor<*xf32> + "std.return"(%0) : (tensor<*xf32>) -> () // // CHECK-LABEL: test_tanh // // CHECK: [[DIM_0:%.+]] = dim %arg0, 0 : memref @@ -168,7 +168,7 @@ func @test_exp(%arg0 : tensor) -> tensor<*xf32> { // // CHECK: [[TANH_RES:%.+]] = divf [[DIVIDEND]], [[DIVISOR]] : f32 // // CHECK: store [[TANH_RES]], [[RES]][%arg1, %arg2] : memref // // CHECK: return [[RES]] : memref -// } +} func @test_sinh(%arg0 : tensor) -> tensor<*xf32> { %0 = "onnx.Sinh"(%arg0) : (tensor) -> tensor<*xf32>