Skip to content

Commit 8d28731

Browse files
modify comments
1 parent f2efff3 commit 8d28731

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ AffineMap mlir::sparse_tensor::inferLvlToDim(AffineMap dimToLvl,
753753
MLIRContext *context) {
754754
auto map = static_cast<AffineMap>(dimToLvl);
755755
AffineMap lvlToDim;
756-
// TODO: support ELL instead of returning an empty lvlToDim.
756+
// Return an empty lvlToDim when inference is not successful.
757757
if (!map || map.getNumSymbols() != 0) {
758758
lvlToDim = AffineMap();
759759
} else if (map.isPermutation()) {
@@ -791,8 +791,8 @@ AffineMap mlir::sparse_tensor::inverseBlockSparsity(AffineMap dimToLvl,
791791
auto pos = binOp.getLHS().dyn_cast<AffineDimExpr>().getPosition();
792792
assert(lvlExprComponents.find(pos) != lvlExprComponents.end() &&
793793
"expected floordiv before mod");
794-
// Level variable for mod added to the vector of the corresponding
795-
// floordiv with the same dimension.
794+
// Add level variable for mod to the same vector
795+
// of the corresponding floordiv.
796796
lvlExprComponents[pos].push_back(getAffineDimExpr(i, context));
797797
} else {
798798
assert(false && "expected floordiv or mod");

0 commit comments

Comments
 (0)