From cbf0c71f15f8d527f11c4e584e7269c853a12eb6 Mon Sep 17 00:00:00 2001 From: Tina Jung Date: Mon, 29 Jan 2024 15:12:56 +0000 Subject: [PATCH] Fix missing brace --- test/mlir/conversion/onnx_to_tosa/Math/Elementwise.mlir | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/mlir/conversion/onnx_to_tosa/Math/Elementwise.mlir b/test/mlir/conversion/onnx_to_tosa/Math/Elementwise.mlir index 3a57ade21e..5bc7841a4b 100644 --- a/test/mlir/conversion/onnx_to_tosa/Math/Elementwise.mlir +++ b/test/mlir/conversion/onnx_to_tosa/Math/Elementwise.mlir @@ -3,7 +3,7 @@ // ----- func.func @test_cast_f32_i8(%arg0: tensor<13x21x1xf32>) -> tensor<13x21x1xi8> { - %0 = "onnx.Cast"(%arg0) {to = i8} : (tensor<13x21x1xf32>) -> tensor<13x21x1xi8> + %0 = "onnx.Cast"(%arg0) {to = i8} : (tensor<13x21x1xf32>) -> tensor<13x21x1xi8> "func.return"(%0) : (tensor<13x21x1xi8>) -> () // CHECK-LABEL: func @test_cast_f32_i8 // CHECK-SAME: ([[PARAM_0_:%.+]]: tensor<13x21x1xf32>) -> tensor<13x21x1xi8> { @@ -13,7 +13,7 @@ func.func @test_cast_f32_i8(%arg0: tensor<13x21x1xf32>) -> tensor<13x21x1xi8> { // ----- func.func @test_cast_i8_i1(%arg0: tensor<1x21x1x1xi8>) -> tensor<1x21x1x1xi1> { - %0 = "onnx.Cast"(%arg0) {to = i1} : (tensor<1x21x1x1xi8>) -> tensor<1x21x1x1xi1> + %0 = "onnx.Cast"(%arg0) {to = i1} : (tensor<1x21x1x1xi8>) -> tensor<1x21x1x1xi1> "func.return"(%0) : (tensor<1x21x1x1xi1>) -> () // CHECK-LABEL: func @test_cast_i8_i1 // CHECK-SAME: ([[PARAM_0_:%.+]]: tensor<1x21x1x1xi8>) -> tensor<1x21x1x1xi1> { @@ -300,6 +300,7 @@ func.func @test_sigmoid(%arg0 : tensor<10x10xf32>) -> tensor<10x10xf32> { // CHECK-NEXT: [[VAR_0_:%.+]] = "tosa.sigmoid"([[PARAM_0_]]) : (tensor<10x10xf32>) -> tensor<10x10xf32> // CHECK-NEXT: return [[VAR_0_]] : tensor<10x10xf32> // CHECK-NEXT: } +} // ----- @@ -941,4 +942,4 @@ func.func @test_less_broadcast(%arg0: tensor<13x21x1xf32>, %arg1: tensor<1xf32>) // CHECK: [[VAR_0_:%.+]] = "tosa.reshape"(%arg1) <{new_shape = array}> : (tensor<1xf32>) -> tensor<1x1x1xf32> // CHECK: [[VAR_1_:%.+]] = "tosa.greater"([[VAR_0_]], %arg0) : (tensor<1x1x1xf32>, tensor<13x21x1xf32>) -> tensor<13x21x1xi1> // CHECK: return [[VAR_1_]] : tensor<13x21x1xi1> -} \ No newline at end of file +}