[Mlir-commits] [mlir] [mlir][sparse] unify sparse_tensor.out rewriting rules (PR #70518)

Yinying Li llvmlistbot at llvm.org
Fri Oct 27 16:24:39 PDT 2023


================
@@ -29,29 +29,35 @@ def boilerplate(attr: st.EncodingAttr):
 """
 
 
-def expected():
+def expected(id_map):
     """Returns expected contents of output.
 
-    Regardless of the dimension ordering, compression, and bitwidths that are
-    used in the sparse tensor, the output is always lexicographically sorted
-    by natural index order.
+    output appears as dimension coordinates but lexicographically
----------------
yinying-lisa-li wrote:

Can we do `Output` instead of `output`?

https://github.com/llvm/llvm-project/pull/70518


More information about the Mlir-commits mailing list