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 13802d4 commit 2f6c890Copy full SHA for 2f6c890
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
@@ -494,13 +494,11 @@ class SparseInsertGenerator
494
TensorType rtp;
495
void replaceWithUnderscore(std::string &lvlType) {
496
for (auto it = lvlType.begin(); it != lvlType.end();) {
497
- if (*it == '(') {
+ if (*it == '(' || *it == ',') {
498
*it = '_';
499
} else if (*it == ')' || *it == ' ') {
500
it = lvlType.erase(it);
501
continue;
502
- } else if (*it == ',') {
503
- *it = '_';
504
}
505
it++;
506
0 commit comments