[Mlir-commits] [mlir] [mlir][linalg] Add tests for tensor.unpack decomposition (PR #118786)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Dec 5 03:01:15 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 85d15bd130930c96533419b0fc2e66d86b84af42 49dc4d532ca5f51f85246b0412cea3a9b04233f0 --extensions h -- mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
index 84c13ad2b3..20b5630aeb 100644
--- a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
+++ b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
@@ -1571,14 +1571,16 @@ struct DecomposeOuterUnitDimsPackOpPattern
/// After:
/// ```
/// // Rank-reduced extract to obtain the tile
-/// %slice = tensor.extract_slice %arg0[0, 0, 0, 0] [1, 1, 2, 8] [1, 1, 1, 1] : tensor<1x1x2x8xf32> to tensor<2x8xf32>
+/// %slice = tensor.extract_slice %arg0[0, 0, 0, 0] [1, 1, 2, 8] [1, 1, 1, 1]
+/// : tensor<1x1x2x8xf32> to tensor<2x8xf32>
/// // EmptyOp + TransposeOp
/// %init = tensor.empty() : tensor<8x2xf32>
/// %transposed = linalg.transpose
/// ins(%extracted_slice : tensor<2x8xf32>)
/// outs(%0 : tensor<8x2xf32>) permutation = [1, 0]
/// // Extract a slice matching the specified output size
-/// %result = tensor.extract_slice %transposed[0, 0] [5, 1] [1, 1] : tensor<8x2xf32> to tensor<5x1xf32>
+/// %result = tensor.extract_slice %transposed[0, 0] [5, 1] [1, 1] :
+/// tensor<8x2xf32> to tensor<5x1xf32>
///
/// ```
struct DecomposeOuterUnitDimsUnPackOpPattern
``````````
</details>
https://github.com/llvm/llvm-project/pull/118786
More information about the Mlir-commits
mailing list