[Mlir-commits] [mlir] Support float8_e3m4 and float8_e4m3 in np_to_memref (PR #186453)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Mar 13 10:05:10 PDT 2026


================
@@ -616,12 +616,91 @@ def testF8E5M2Memref():
         assert len(x) == 1
         assert x[0] == 0.5
 
-
 if HAS_ML_DTYPES:
     run(testF8E5M2Memref)
 else:
     log("TEST: testF8E5M2Memref")
 
+# Test f8E3M4 memrefs
----------------
srcarroll wrote:

this is mostly repeated boilerplate code, but i'm following the convention of the rest of the tests here. i can refactor to have a single boilerplate for some of these tests if desired. but i'm also not opposed to the repetition for the sake of clarity. at some point too much abstraction can obfuscate the tests, but there's probably not much danger in that in this case

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


More information about the Mlir-commits mailing list