[Mlir-commits] [mlir] [mlir][python] value casting (PR #69644)

Jacques Pienaar llvmlistbot at llvm.org
Fri Nov 3 10:49:53 PDT 2023


================
@@ -425,6 +425,12 @@ def __str__(self):
             # And it should be equal to the in-tree concrete type
             assert test.TestIntegerRankedTensorType.static_typeid == t.type.typeid
 
+            d = tensor.EmptyOp([1, 2, 3], IntegerType.get_signless(5)).result
+            # CHECK: Value(%{{.*}} = tensor.empty() : tensor<1x2x3xi5>)
+            print(d)
+            # CHECK: <importlib._bootstrap.TestTensorValue object at
----------------
jpienaar wrote:

Is this format pretty much guaranteed and stable? Would TestTensorValue be sufficient to check for 

https://github.com/llvm/llvm-project/pull/69644


More information about the Mlir-commits mailing list