[Mlir-commits] [mlir] [mlir][sparse] rename DimLevelType to LevelType (PR #73561)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 27 12:34:52 PST 2023


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 983a2757b0a66812f1b0bfc5a2262bfcee6ac562..75dfdcfd16ea95e16190f5a41b0b1df12cc63532 mlir/test/Integration/Dialect/SparseTensor/python/test_SDDMM.py mlir/test/Integration/Dialect/SparseTensor/python/test_SpMM.py mlir/test/Integration/Dialect/SparseTensor/python/test_output.py mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py mlir/test/python/dialects/sparse_tensor/dialect.py
``````````

</details>

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

``````````diff
--- Integration/Dialect/SparseTensor/python/test_stress.py	2023-11-27 20:18:42.000000 +0000
+++ Integration/Dialect/SparseTensor/python/test_stress.py	2023-11-27 20:34:45.090191 +0000
@@ -202,13 +202,11 @@
         shape = range(2, 3)
         rank = len(shape)
         # All combinations.
         levels = list(
             itertools.product(
-                *itertools.repeat(
-                    [st.LevelType.dense, st.LevelType.compressed], rank
-                )
+                *itertools.repeat([st.LevelType.dense, st.LevelType.compressed], rank)
             )
         )
         # All permutations.
         orderings = list(
             map(ir.AffineMap.get_permutation, itertools.permutations(range(rank)))

``````````

</details>


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


More information about the Mlir-commits mailing list