[Mlir-commits] [mlir] Add support for transform.param values in `PadOp`s pad_to_multiple_of (PR #90755)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 1 10:58:23 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 1563a8752b33a854c3ab5a4e8b3dce39ac9831b8...6aa9f0db3a39a877a87245206c7562ed27f77657 mlir/python/mlir/dialects/transform/structured.py mlir/test/python/dialects/transform_structured_ext.py
``````````

</details>

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

``````````diff
--- python/mlir/dialects/transform/structured.py	2024-05-01 17:54:20.000000 +0000
+++ python/mlir/dialects/transform/structured.py	2024-05-01 17:57:58.733135 +0000
@@ -384,14 +384,11 @@
         ] = None,
         copy_back_op: Optional[Union[str, StringAttr]] = None,
         loc=None,
         ip=None,
     ):
-        if (
-            static_pad_to_multiple_of is None
-            and pad_to_multiple_of is None
-        ):
+        if static_pad_to_multiple_of is None and pad_to_multiple_of is None:
             dynamic_pad_to_multiple_of = []
         elif static_pad_to_multiple_of is None:
             (
                 dynamic_pad_to_multiple_of,
                 static_pad_to_multiple_of,

``````````

</details>


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


More information about the Mlir-commits mailing list