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 5a3c257 commit 18d3db4Copy full SHA for 18d3db4
mlir/lib/Dialect/Shard/IR/ShardOps.cpp
@@ -576,7 +576,7 @@ LogicalResult ShardingOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
576
return failure();
577
}
578
if (mlir::ShapedType::isDynamicShape(grid->getShape()) &&
579
- getStaticShardedDimsOffsets().size() > 0) {
+ !getStaticShardedDimsOffsets().empty()) {
580
return emitError() << "sharded dims offsets are not allowed for "
581
"device grids with dynamic shape.";
582
0 commit comments