@@ -310,7 +310,7 @@ def matmul_op(A, Amem, B, Bmem, Btransposed, Btransposedmem, C, Cmem):
310310 )
311311 linalg .fill_builtin_region (res .operation )
312312 # CHECK: linalg.matmul ins(%[[A]], %[[B]] : tensor<4x8xf32>, tensor<8x12xf32>) outs(%[[C]] : tensor<4x12xf32>)
313- res = linalg .matmul (( A , B ) , outs = (C ,))
313+ res = linalg .matmul (A , B , outs = (C ,))
314314
315315 # CHECK: linalg.matmul indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[A]], %[[BTrans]] : tensor<4x8xf32>, tensor<12x8xf32>) outs(%[[C]] : tensor<4x12xf32>)
316316 res = linalg .MatmulOp (
@@ -322,7 +322,7 @@ 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 , Btransposed ,
326326 outs = (C ,),
327327 indexing_maps = [a_map , b_transposed_map , c_map ],
328328 )
@@ -337,7 +337,7 @@ def matmul_op(A, Amem, B, Bmem, Btransposed, Btransposedmem, C, Cmem):
337337 )
338338 linalg .fill_builtin_region (res .operation )
339339 # CHECK: linalg.matmul ins(%[[Amem]], %[[Bmem]] : memref<4x8xf32>, memref<8x12xf32>) outs(%[[Cmem]] : memref<4x12xf32>)
340- linalg .matmul (( Amem , Bmem ) , outs = (Cmem ,))
340+ linalg .matmul (Amem , Bmem , outs = (Cmem ,))
341341
342342 # CHECK: linalg.matmul indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[Amem]], %[[BTransmem]] : memref<4x8xf32>, memref<12x8xf32>) outs(%[[Cmem]] : memref<4x12xf32>)
343343 res = linalg .MatmulOp (
@@ -349,7 +349,7 @@ def matmul_op(A, Amem, B, Bmem, Btransposed, Btransposedmem, C, Cmem):
349349 linalg .fill_builtin_region (res .operation )
350350 # CHECK: linalg.matmul indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[Amem]], %[[BTransmem]] : memref<4x8xf32>, memref<12x8xf32>) outs(%[[Cmem]] : memref<4x12xf32>)
351351 linalg .matmul (
352- ( Amem , Btransposedmem ) ,
352+ Amem , Btransposedmem ,
353353 outs = (Cmem ,),
354354 indexing_maps = [a_map , b_transposed_map , c_map ],
355355 )
@@ -414,7 +414,7 @@ def matmul_as_contract_op(
414414 linalg .fill_builtin_region (op4 .operation )
415415 # CHECK: linalg.contract indexing_maps = [#[[$A_MAP]], #[[$B_MAP]], #[[$C_MAP]]] ins(%[[A]], %[[B]] : tensor<4x8xf32>, tensor<8x12xf32>) outs(%[[C]] : tensor<4x12xf32>)
416416 op5 = linalg .contract (
417- ( A , B ) , outs = (C ,), indexing_maps = [a_map , b_map , c_map ]
417+ A , B , outs = (C ,), indexing_maps = [a_map , b_map , c_map ]
418418 )
419419
420420 # CHECK: linalg.contract indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[A]], %[[BTrans]] : tensor<4x8xf32>, tensor<12x8xf32>) outs(%[[C]] : tensor<4x12xf32>)
@@ -427,7 +427,7 @@ def matmul_as_contract_op(
427427 linalg .fill_builtin_region (op4 .operation )
428428 # CHECK: linalg.contract indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[A]], %[[BTrans]] : tensor<4x8xf32>, tensor<12x8xf32>) outs(%[[C]] : tensor<4x12xf32>)
429429 op5 = linalg .contract (
430- ( A , Btransposed ) ,
430+ A , Btransposed ,
431431 outs = (C ,),
432432 indexing_maps = [a_map , b_transposed_map , c_map ],
433433 )
@@ -443,7 +443,7 @@ def matmul_as_contract_op(
443443 linalg .fill_builtin_region (op4 .operation )
444444 # CHECK: linalg.contract indexing_maps = [#[[$A_MAP]], #[[$B_MAP]], #[[$C_MAP]]] ins(%[[Amem]], %[[Bmem]] : memref<4x8xf32>, memref<8x12xf32>) outs(%[[Cmem]] : memref<4x12xf32>)
445445 linalg .contract (
446- ( Amem , Bmem ) , outs = (Cmem ,), indexing_maps = [a_map , b_map , c_map ]
446+ Amem , Bmem , outs = (Cmem ,), indexing_maps = [a_map , b_map , c_map ]
447447 )
448448
449449 # CHECK: linalg.contract indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[Amem]], %[[BTransmem]] : memref<4x8xf32>, memref<12x8xf32>) outs(%[[Cmem]] : memref<4x12xf32>)
@@ -456,7 +456,7 @@ def matmul_as_contract_op(
456456 linalg .fill_builtin_region (op4 .operation )
457457 # CHECK: linalg.contract indexing_maps = [#[[$A_MAP]], #[[$BTrans_MAP]], #[[$C_MAP]]] ins(%[[Amem]], %[[BTransmem]] : memref<4x8xf32>, memref<12x8xf32>) outs(%[[Cmem]] : memref<4x12xf32>)
458458 linalg .contract (
459- ( Amem , Btransposedmem ) ,
459+ Amem , Btransposedmem ,
460460 outs = (Cmem ,),
461461 indexing_maps = [a_map , b_transposed_map , c_map ],
462462 )
0 commit comments