Skip to content

Conversation

makslevental
Copy link
Contributor

No description provided.

Copy link

⚠️ Python code formatter, darker found issues in your code. ⚠️

You can test this locally with the following command:
darker --check --diff -r origin/main...HEAD mlir/test/python/dialects/memref.py

⚠️
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing origin/main to the base branch/commit you want to compare against.
⚠️

View the diff from darker here.
--- memref.py	2025-10-14 20:24:02.000000 +0000
+++ memref.py	2025-10-14 20:25:34.118626 +0000
@@ -248,10 +248,11 @@
             mem3 = memref.alloc(T.memref(*shape, T.i32()), [], [])
             check_strides_offset(memref.subview(mem3, (0, 0), (4, 4), (1, 1)), golden_mem[0:4, 0:4])
             check_strides_offset(memref.subview(mem3, (4, 4), (4, 4), (1, 1)), golden_mem[4:8, 4:8])
             # fmt: on
 
+
 # CHECK-LABEL: TEST: testExtractStridedMetadataOp
 @run
 def testExtractStridedMetadataOp():
     S = ShapedType.get_dynamic_size()
     shape = [S] * 4
@@ -263,6 +264,5 @@
         )
         module = Module.create()
         with InsertionPoint(module.body):
             A = memref.alloc(dynamc_memref_t, [], [])
             A_base, A_offset, A_sizes, A_strides = memref.extract_strided_metadata(A)
-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant