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 4c9c2d6 commit 4bc0916Copy full SHA for 4bc0916
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
@@ -521,8 +521,9 @@ struct ConvAccessExprWalker
521
unConvolvedDims.erase(dimPos);
522
// If a duplicate dim is marked as convolved, the pair of the duplicate
523
// dim must be removed from the map as well.
524
- if (convolvedDimMapping.contains(dimPos)) {
525
- int64_t pairedDim = convolvedDimMapping[dimPos];
+ auto it = convolvedDimMapping.find(dimPos);
+ if (it != convolvedDimMapping.end()) {
526
+ int64_t pairedDim = it->second;
527
convolvedDims.erase(pairedDim);
528
unConvolvedDims.erase(pairedDim);
529
strideAndDilationMapping.erase(pairedDim);
0 commit comments