From 61d0f803363fc653948623671b29b034cb9a6c82 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Tue, 2 May 2023 22:30:02 -0700 Subject: [PATCH] Fix MLIR Python test after 9fbe3b511bf703d0d Some mid-air collision between a change in the generic format and this new python test. --- mlir/test/python/dialects/tensor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mlir/test/python/dialects/tensor.py b/mlir/test/python/dialects/tensor.py index 6c85dd1..b0ad4b4 100644 --- a/mlir/test/python/dialects/tensor.py +++ b/mlir/test/python/dialects/tensor.py @@ -110,10 +110,12 @@ def testFromElementsOp(): @func.FuncOp.from_py_func() def default_builder(): c0 = arith.ConstantOp(f32, 0.0) - # CHECK: %[[C0:.*]] = "arith.constant"() {value = 0.000000e+00 : f32} : () -> f32 + # CHECK: %[[C0:.*]] = "arith.constant + # CHECK-SAME: value = 0.000000e+00 : f32 print(c0) c1 = arith.ConstantOp(f32, 1.0) - # CHECK: %[[C1:.*]] = "arith.constant"() {value = 1.000000e+00 : f32} : () -> f32 + # CHECK: %[[C1:.*]] = "arith.constant + # CHECK-SAME: value = 1.000000e+00 : f32 print(c1) t = tensor.FromElementsOp(RankedTensorType.get((2,), f32), [c0, c1]) -- 2.7.4