[Mlir-commits] [mlir] [mlir][linalg] regionBuilder for transpose, broadcast (PR #69742)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Oct 20 10:53:49 PDT 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 71bdd2c2380d3e0cc96898bd7908ac8c99d10a8f..442585c991fbc1bb24e70213de026058f3fb4185 mlir/python/mlir/dialects/linalg/__init__.py mlir/test/python/dialects/linalg/ops.py
``````````

</details>

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

``````````diff
--- python/mlir/dialects/linalg/__init__.py	2023-10-20 17:23:53.000000 +0000
+++ python/mlir/dialects/linalg/__init__.py	2023-10-20 17:53:42.155037 +0000
@@ -65,11 +65,10 @@
     input: Union[Operation, OpView, Sequence[Value]],
     *,
     outs: List[Union[Operation, OpView, Sequence[Value]]],
     permutation: Union[DenseI64ArrayAttr, List[int]],
 ):
-
     input = _get_op_result_or_value(input)
     if len(outs) > 1:
         raise ValueError(f"{outs=} must have length 1.")
     init = _get_op_result_or_value(outs[0])
     result_types = [init.type] if isa(RankedTensorType, init.type) else []
@@ -88,11 +87,10 @@
     input: Union[Operation, OpView, Sequence[Value]],
     *,
     outs: List[Union[Operation, OpView, Sequence[Value]]],
     dimensions: Union[DenseI64ArrayAttr, List[int]],
 ):
-
     input = _get_op_result_or_value(input)
     if len(outs) > 1:
         raise ValueError(f"{outs=} must have length 1.")
     init = _get_op_result_or_value(outs[0])
     result_types = [init.type] if isa(RankedTensorType, init.type) else []

``````````

</details>


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


More information about the Mlir-commits mailing list