[Mlir-commits] [mlir] [mlir][sparse] Add more tests and verification for n:m (PR #81186)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Feb 8 12:16:41 PST 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 d1fdb416299c0efa5979ed989f7c1f39973dcb73...bab45ddc09e96982dc27f2edd0262812e3398c17 mlir/test/python/dialects/sparse_tensor/dialect.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- dialect.py	2024-02-08 19:53:40.000000 +0000
+++ dialect.py	2024-02-08 20:16:32.775755 +0000
@@ -94,13 +94,11 @@
         # CHECK: #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 floordiv 4 : dense, d1 mod 4 : structured[2, 4]) }>
         print(created)
         # CHECK: created_equal: False
         print(f"created_equal: {created == casted}")
 
-        built_2_4 = st.EncodingAttr.build_level_type(
-            st.LevelType.n_out_of_m, 2, 4
-        )
+        built_2_4 = st.EncodingAttr.build_level_type(st.LevelType.n_out_of_m, 2, 4)
         dim_to_lvl = AffineMap.get(
             2,
             0,
             [
                 AffineExpr.get_dim(0),

``````````

</details>


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


More information about the Mlir-commits mailing list