[Mlir-commits] [mlir] [MLIR][test] Fixup for checking for ml_dtypes (PR #123240)

Konrad Kleine llvmlistbot at llvm.org
Fri Jan 17 00:55:24 PST 2025


================
@@ -566,17 +565,16 @@ def testBF16Memref():
         execution_engine.invoke("main", arg1_memref_ptr, arg2_memref_ptr)
 
         # test to-numpy utility
-        # CHECK: [0.5]
-        npout = ranked_memref_to_numpy(arg2_memref_ptr[0])
-        log(npout)
+        x = ranked_memref_to_numpy(arg2_memref_ptr[0])
+        assert len(x) == 1
+        assert x[0] == 0.5
 
 
 if HAS_ML_DTYPES:
     run(testBF16Memref)
 
 
 # Test f8E5M2 memrefs
-# CHECK-LABEL: TEST: testF8E5M2Memref
----------------
kwk wrote:

@makslevental I've update the PR and would be super happy if you could take a look again. Thank you for accepting my PRs and helping me fix them btw. This is very welcoming.

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


More information about the Mlir-commits mailing list