Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shardy/dialect/sdy/ir/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Attribute getCommonMeshOrRef(ArrayRef<TensorShardingAttr> operandShardings,
MeshAttr mesh;
for (TensorShardingAttr sharding : llvm::concat<const TensorShardingAttr>(
operandShardings, resultsShardings)) {
if (!sharding) {
if (!sharding || sharding.getMeshOrRef() == meshOrRef) {
continue;
}
MeshAttr otherMesh = sharding.getMesh(symbolTable);
Expand Down
Loading