We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfdf974 commit e6e36b9Copy full SHA for e6e36b9
mlir/lib/Dialect/Linalg/Transforms/SparseTensorRewriting.cpp
@@ -35,8 +35,8 @@ static bool isSparseTensor(OpOperand *op) {
35
if (auto enc = getSparseTensorEncoding(op->get().getType())) {
36
ArrayRef<SparseTensorEncodingAttr::DimLevelType> dimTypes =
37
enc.getDimLevelType();
38
- for (unsigned i = 0, e = dimTypes.size(); i < e; i++)
39
- if (dimTypes[i] == SparseTensorEncodingAttr::DimLevelType::Compressed)
+ for (auto dimType : dimTypes)
+ if (dimType == SparseTensorEncodingAttr::DimLevelType::Compressed)
40
return true; // at least one compressed
41
}
42
return false;
0 commit comments