[Mlir-commits] [mlir] [mlir][sparse] Populate lvlToDim (PR #68937)
Aart Bik
llvmlistbot at llvm.org
Mon Oct 16 10:14:05 PDT 2023
================
@@ -749,6 +748,71 @@ mlir::sparse_tensor::getSparseTensorEncoding(Type type) {
return nullptr;
}
+AffineMap mlir::sparse_tensor::inferLvlToDim(AffineMap dimToLvl,
+ MLIRContext *context) {
+ auto map = static_cast<AffineMap>(dimToLvl);
+ AffineMap lvlToDim;
+ // TODO: support ELL instead of returning an empty lvlToDim.
----------------
aartbik wrote:
This is too specific. Just document this method as returning an empty lvlToDim when inference is not successfull
https://github.com/llvm/llvm-project/pull/68937
More information about the Mlir-commits
mailing list