[Mlir-commits] [mlir] [mlir][sparse] Populate lvlToDim (PR #68937)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Oct 12 16:16:28 PDT 2023


github-actions[bot] wrote:


<!--LLVM CODE FORMAT COMMENT: {clang-format}-->

:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 46cb8d9a325233ac11ed5e90367c43774294d87e a0a9a3f80acf7c6e0e37a64facec5c2a26b2e22d -- mlir/include/mlir-c/Dialect/SparseTensor.h mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h mlir/lib/Bindings/Python/DialectSparseTensor.cpp mlir/lib/CAPI/Dialect/SparseTensor.cpp mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp mlir/test/CAPI/sparse_tensor.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Bindings/Python/DialectSparseTensor.cpp b/mlir/lib/Bindings/Python/DialectSparseTensor.cpp
index ba449faa9..9bde3a443 100644
--- a/mlir/lib/Bindings/Python/DialectSparseTensor.cpp
+++ b/mlir/lib/Bindings/Python/DialectSparseTensor.cpp
@@ -51,8 +51,8 @@ static void populateDialectSparseTensorSubmodule(const py::module &m) {
                 crdWidth));
           },
           py::arg("cls"), py::arg("lvl_types"), py::arg("dim_to_lvl"),
-          py::arg("lvl_to_dim"), py::arg("pos_width"),
-          py::arg("crd_width"), py::arg("context") = py::none(),
+          py::arg("lvl_to_dim"), py::arg("pos_width"), py::arg("crd_width"),
+          py::arg("context") = py::none(),
           "Gets a sparse_tensor.encoding from parameters.")
       .def_property_readonly(
           "lvl_types",

``````````

</details>


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


More information about the Mlir-commits mailing list