From 050d7d277d119070550f7351086d89e272331d45 Mon Sep 17 00:00:00 2001 From: Doru Bercea Date: Wed, 22 Jan 2020 16:12:09 -0500 Subject: [PATCH] Fix test. --- test/mlir/onnx/onnx_shape_inference.mlir | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/mlir/onnx/onnx_shape_inference.mlir b/test/mlir/onnx/onnx_shape_inference.mlir index e246ffc..7057582 100644 --- a/test/mlir/onnx/onnx_shape_inference.mlir +++ b/test/mlir/onnx/onnx_shape_inference.mlir @@ -11,19 +11,15 @@ func @test_default_transpose(%arg0 : tensor<5x5x1x32xf32>) -> tensor<*xf32> { // CHECK: return [[RES]] : tensor<32x1x5x5xf32> } -// CHECK-LABEL: test_default_transpose -// CHECK: [[RES:%.+]] = "onnx.Transpose"(%arg0) : (tensor<5x5x1x32xf32>) -> tensor<32x1x5x5xf32> -// CHECK: return [[RES]] : tensor<32x1x5x5xf32> - /// Test shape inference for transposition when perm attribute is specified. func @test_transpose(%arg0 : tensor<5x5x1x32xf32>) -> tensor<*xf32> { %0 = "onnx.Transpose"(%arg0) {perm = [2, 0, 3, 1]} : (tensor<5x5x1x32xf32>) -> tensor<*xf32> "std.return"(%0) : (tensor<*xf32>) -> () -} -// CHECK-LABEL: test_transpose -// CHECK: [[RES_ATTR:%.+]] = "onnx.Transpose"(%arg0) {perm = [2, 0, 3, 1]} : (tensor<5x5x1x32xf32>) -> tensor<1x5x32x5xf32> -// CHECK: return [[RES_ATTR]] : tensor<1x5x32x5xf32> + // CHECK-LABEL: test_transpose + // CHECK: [[RES_ATTR:%.+]] = "onnx.Transpose"(%arg0) {perm = [2, 0, 3, 1]} : (tensor<5x5x1x32xf32>) -> tensor<1x5x32x5xf32> + // CHECK: return [[RES_ATTR]] : tensor<1x5x32x5xf32> +} //===----------------------------------------------------------------------===// /// Test the shape inferencing scheme for the matmul operation.