[Mlir-commits] [mlir] [Linalg] Add basic infra to add matchers for linalg.*conv*/*pool* ops (PR #163724)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Thu Nov 6 07:26:57 PST 2025
================
@@ -0,0 +1,124 @@
+// The following test examples of linalg convolution named ops lowered to linalg.generic and then
+// lifted back up to named op.
+// RUN: mlir-opt %s -linalg-generalize-named-ops | mlir-opt --linalg-specialize-generic-ops | FileCheck %s
+
+func.func @depthwise_conv_1d_nwc_wc(%input: memref<?x?x?xf32>, %filter: memref<?x?xf32>, %output: memref<?x?x?xf32>) {
+ linalg.depthwise_conv_1d_nwc_wc {dilations = dense<3> : tensor<1xi64>,
+ strides = dense<2> : tensor<1xi64>}
----------------
banach-space wrote:
[nit] This indentation is inconsistent with other indentations for attributes and also feels a bit arbitrary. Could I suggest moving attributes, consistently, to a dedicated line?
```suggestion
linalg.depthwise_conv_1d_nwc_wc
{dilations = dense<3> : tensor<1xi64>, strides = dense<2> : tensor<1xi64>}
```
https://github.com/llvm/llvm-project/pull/163724
More information about the Mlir-commits
mailing list