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 2232881 commit 3b6462cCopy full SHA for 3b6462c
mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp
@@ -166,12 +166,12 @@ LogicalResult mesh::ShardingInterface::verifyShardingInterfaceImpl() {
166
167
// check loop types
168
SmallVector<utils::IteratorType> loopTypes = getLoopIteratorTypes();
169
- if (loopTypes.size() == 0)
+ if (loopTypes.empty())
170
return failure();
171
172
// check maps
173
SmallVector<AffineMap> maps = getIndexingMaps();
174
- if (maps.size() == 0)
+ if (maps.empty())
175
176
unsigned numOperands = op->getNumOperands();
177
unsigned numResults = op->getNumResults();
0 commit comments