[Mlir-commits] [mlir] [mlir][Linalg] Preserve encodings in static shape inference. (PR #132311)
Han-Chung Wang
llvmlistbot at llvm.org
Fri Mar 21 10:02:58 PDT 2025
================
@@ -649,6 +649,29 @@ func.func @cast_dest(%arg0: tensor<?x?x?xf32>, %arg1: tensor<1x?x?xf32>, %arg2:
// -----
+#map = affine_map<(d0, d1) -> (d0, d1)>
+#sparse = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed) }>
----------------
hanhanW wrote:
I'm thinking if I should use `linalg.elemwise_unary/binary` in the test. I followed the other tests in the file, but I think they were added a long time ago.
```
%0 = linalg.elemwise_unary ins(%arg0 : tensor<?x?xf32>)
outs(%arg1: tensor<?x?xf32>) -> tensor<?x?xf32>
%1 = linalg.elemwise_binary ins(%0, %arg0 : tensor<?x?xf32>, tensor<?x?xf32>)
outs(%arg1: tensor<?x?xf32>) -> tensor<?x?xf32>
```
https://github.com/llvm/llvm-project/pull/132311
More information about the Mlir-commits
mailing list