[Mlir-commits] [mlir] [mlir][python]Add sugared buider for transform.named_sequence (PR #71597)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Nov 7 15:05:30 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 25ec1fa969a0d13f440222f575277f9601eaea76..0e382dd88c7ae6d07da35f9a7312dbfd9850b630 mlir/python/mlir/dialects/transform/__init__.py mlir/test/python/dialects/transform.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- test/python/dialects/transform.py 2023-11-07 22:54:30.000000 +0000
+++ test/python/dialects/transform.py 2023-11-07 23:05:23.716448 +0000
@@ -61,11 +61,11 @@
@run
def testNamedSequenceOp(module: Module):
module.operation.attributes["transform.with_named_sequence"] = UnitAttr.get()
named_sequence = transform.NamedSequenceOp(
- '__transform_main',
+ "__transform_main",
[transform.AnyOpType.get()],
[transform.AnyOpType.get()],
)
with InsertionPoint(named_sequence.body):
transform.YieldOp([named_sequence.bodyTarget])
``````````
</details>
https://github.com/llvm/llvm-project/pull/71597
More information about the Mlir-commits
mailing list