diff options
| author | Mehdi Amini <joker.eph@gmail.com> | 2025-08-21 08:41:13 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2025-11-21 03:57:31 -0800 |
| commit | 18d3db4bcd42e21e45b499a2999834904a925af0 (patch) | |
| tree | 59ea73d5517f38a5308f0eb1442c2e06f63b22e5 | |
| parent | 5a3c2573a9644efe3384c4144b119148088b48ef (diff) | |
[MLIR] Apply clang-tidy fixes for readability-container-size-empty in ShardOps.cpp (NFC)
| -rw-r--r-- | mlir/lib/Dialect/Shard/IR/ShardOps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Shard/IR/ShardOps.cpp b/mlir/lib/Dialect/Shard/IR/ShardOps.cpp index 645cbff11340..46ffed3b16b5 100644 --- a/mlir/lib/Dialect/Shard/IR/ShardOps.cpp +++ b/mlir/lib/Dialect/Shard/IR/ShardOps.cpp @@ -576,7 +576,7 @@ LogicalResult ShardingOp::verifySymbolUses(SymbolTableCollection &symbolTable) { return failure(); } if (mlir::ShapedType::isDynamicShape(grid->getShape()) && - getStaticShardedDimsOffsets().size() > 0) { + !getStaticShardedDimsOffsets().empty()) { return emitError() << "sharded dims offsets are not allowed for " "device grids with dynamic shape."; } |
