[Mlir-commits] [mlir] [MLIR][test] Check for ml_dtypes before running tests (PR #123061)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jan 15 06:20:02 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 171d3edd0507422f64cc11b33dac7b7f2b703f76...195fa3fd620a251b8a8d71b4bc2e7613f14115f9 mlir/test/python/execution_engine.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- execution_engine.py 2025-01-15 14:12:44.000000 +0000
+++ execution_engine.py 2025-01-15 14:19:32.494582 +0000
@@ -3,15 +3,17 @@
import gc, sys, os, tempfile
from mlir.ir import *
from mlir.passmanager import *
from mlir.execution_engine import *
from mlir.runtime import *
+
try:
from ml_dtypes import bfloat16, float8_e5m2
- HAS_ML_DTYPES=True
+
+ HAS_ML_DTYPES = True
except ModuleNotFoundError:
- HAS_ML_DTYPES=False
+ HAS_ML_DTYPES = False
MLIR_RUNNER_UTILS = os.getenv(
"MLIR_RUNNER_UTILS", "../../../../lib/libmlir_runner_utils.so"
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/123061
More information about the Mlir-commits
mailing list