Skip to content

Commit 7a5234f

Browse files
committed
Py formatting fix
1 parent f83f7ae commit 7a5234f

File tree

1 file changed

+8
-4
lines changed
  • mlir/test/python/dialects/linalg

1 file changed

+8
-4
lines changed

mlir/test/python/dialects/linalg/ops.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def matmul_op(A, Amem, B, Bmem, Btransposed, Btransposedmem, C, Cmem):
322322
linalg.fill_builtin_region(res.operation)
323323
# CHECK: linalg.matmul indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[A]], %[[BTrans]] : tensor<4x8xf32>, tensor<12x8xf32>) outs(%[[C]] : tensor<4x12xf32>)
324324
res = linalg.matmul(
325-
A, Btransposed,
325+
A,
326+
Btransposed,
326327
outs=(C,),
327328
indexing_maps=[a_map, b_transposed_map, c_map],
328329
)
@@ -349,7 +350,8 @@ def matmul_op(A, Amem, B, Bmem, Btransposed, Btransposedmem, C, Cmem):
349350
linalg.fill_builtin_region(res.operation)
350351
# CHECK: linalg.matmul indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[Amem]], %[[BTransmem]] : memref<4x8xf32>, memref<12x8xf32>) outs(%[[Cmem]] : memref<4x12xf32>)
351352
linalg.matmul(
352-
Amem, Btransposedmem,
353+
Amem,
354+
Btransposedmem,
353355
outs=(Cmem,),
354356
indexing_maps=[a_map, b_transposed_map, c_map],
355357
)
@@ -427,7 +429,8 @@ def matmul_as_contract_op(
427429
linalg.fill_builtin_region(op4.operation)
428430
# CHECK: linalg.contract indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[A]], %[[BTrans]] : tensor<4x8xf32>, tensor<12x8xf32>) outs(%[[C]] : tensor<4x12xf32>)
429431
op5 = linalg.contract(
430-
A, Btransposed,
432+
A,
433+
Btransposed,
431434
outs=(C,),
432435
indexing_maps=[a_map, b_transposed_map, c_map],
433436
)
@@ -456,7 +459,8 @@ def matmul_as_contract_op(
456459
linalg.fill_builtin_region(op4.operation)
457460
# CHECK: linalg.contract indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[Amem]], %[[BTransmem]] : memref<4x8xf32>, memref<12x8xf32>) outs(%[[Cmem]] : memref<4x12xf32>)
458461
linalg.contract(
459-
Amem, Btransposedmem,
462+
Amem,
463+
Btransposedmem,
460464
outs=(Cmem,),
461465
indexing_maps=[a_map, b_transposed_map, c_map],
462466
)

0 commit comments

Comments
 (0)