[Mlir-commits] [mlir] [sparse] allow unpack op to return 0-ranked tensor type. (PR #66269)

Aart Bik llvmlistbot at llvm.org
Wed Sep 13 11:21:35 PDT 2023


================
@@ -438,6 +438,10 @@ class RankedSparseTensorOf<list<Type> allowedTypes>
 
 def AnyRankedSparseTensor : RankedSparseTensorOf<[AnyType]>;
 
+class ScalarLikeOf<list<Type> allowedTypes>
----------------
aartbik wrote:

This is technically no longer a "sparse tensor trait" as defined by the header of this section (so in the long run we may want to promote this to a more general place). But OK for now.

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


More information about the Mlir-commits mailing list