[Mlir-commits] [mlir] [WIP][mlir][sparse] Enable explicit and implicit value in sparse encoding (PR #88975)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Apr 16 12:49:25 PDT 2024
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 37b7207651b44743909a427b5509bed5e6c21b59...0ba7c454306c14b007a5fc4c8f48b6a0b861a6a3 mlir/test/python/dialects/sparse_tensor/dialect.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- dialect.py 2024-04-16 19:09:43.000000 +0000
+++ dialect.py 2024-04-16 19:49:02.195176 +0000
@@ -43,11 +43,13 @@
print(f"explicit_val: {casted.explicit_val}")
# CHECK: implicit_val: None
print(f"implicit_val: {casted.implicit_val}")
new_explicit_val = FloatAttr.get_f64(1.0)
- created = st.EncodingAttr.get(casted.lvl_types, None, None, 0, 0, new_explicit_val)
+ created = st.EncodingAttr.get(
+ casted.lvl_types, None, None, 0, 0, new_explicit_val
+ )
# CHECK: #sparse_tensor.encoding<{ map = (d0) -> (d0 : compressed), explicitVal = 1.000000e+00 : f64 }>
print(created)
# CHECK: created_equal: False
print(f"created_equal: {created == casted}")
``````````
</details>
https://github.com/llvm/llvm-project/pull/88975
More information about the Mlir-commits
mailing list