[Mlir-commits] [mlir] 61d0f80 - Fix MLIR Python test after 9fbe3b511bf703d0d

Mehdi Amini llvmlistbot at llvm.org
Tue May 2 22:30:48 PDT 2023


Author: Mehdi Amini
Date: 2023-05-02T22:30:37-07:00
New Revision: 61d0f803363fc653948623671b29b034cb9a6c82

URL: https://github.com/llvm/llvm-project/commit/61d0f803363fc653948623671b29b034cb9a6c82
DIFF: https://github.com/llvm/llvm-project/commit/61d0f803363fc653948623671b29b034cb9a6c82.diff

LOG: Fix MLIR Python test after 9fbe3b511bf703d0d

Some mid-air collision between a change in the generic format and this
new python test.

Added: 
    

Modified: 
    mlir/test/python/dialects/tensor.py

Removed: 
    


################################################################################
diff  --git a/mlir/test/python/dialects/tensor.py b/mlir/test/python/dialects/tensor.py
index 6c85dd1aa1a1d..b0ad4b4ad4d65 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])


        


More information about the Mlir-commits mailing list