[Mlir-commits] [mlir] [mlir] Add a contiguous<perm, offset> layout, use as identity layout (PR #131663)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Mar 17 12:41:01 PDT 2025
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 2443fe537f8bf7620c26586034b12a977d14e366...70a626ce967b1b2c71977efc3a36477d98123e2e mlir/python/mlir/extras/types.py mlir/test/python/dialects/memref.py mlir/test/python/ir/attributes.py mlir/test/python/ir/builtin_types.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- test/python/ir/attributes.py 2025-03-17 19:04:48.000000 +0000
+++ test/python/ir/attributes.py 2025-03-17 19:40:29.112502 +0000
@@ -667,10 +667,11 @@
# CHECK: rank: 3
print(f"rank: {len(attr.strides)}")
# CHECK: strides are dynamic: [True, True, True]
print(f"strides are dynamic: {[s == dynamic for s in attr.strides]}")
+
# CHECK-LABEL: TEST: testContiguousLayoutAttr
@run
def testContiguousLayoutAttr():
with Context():
attr = ContiguousLayoutAttr.get(42, [2, 1, 0])
``````````
</details>
https://github.com/llvm/llvm-project/pull/131663
More information about the Mlir-commits
mailing list