[Mlir-commits] [mlir] [mlir][sparse] Enable explicit and implicit value in sparse encoding (PR #88975)

Aart Bik llvmlistbot at llvm.org
Wed Apr 17 14:23:07 PDT 2024


================
@@ -183,6 +183,16 @@ def SparseTensorEncodingAttr : SparseTensor_Attr<"SparseTensorEncoding",
       coordinate over all levels).  The choices are `8`, `16`, `32`,
       `64`, or, the default, `0` to indicate a native bitwidth.
 
+    - The explicit value for the sparse tensor. If explicitVal is set,
+      then all the non-zero values in the tensor have the same explicit value.
+      The default value Attribute() indicates that it is not set.
----------------
aartbik wrote:

perhaps say a bit more on binary-valued tensors

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


More information about the Mlir-commits mailing list