Skip to content

Commit

Permalink
print is_fully_replicated in DebugString
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 716860231
  • Loading branch information
Google-ML-Automation committed Jan 18, 2025
1 parent ee162a6 commit e141532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xla/python/ifrt/sharding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,9 @@ std::string ConcreteEvenSharding::DebugString() const {
DCHECK(this);
return absl::StrFormat(
"ConcreteEvenSharding(devices: %v, shape: %s, shard_shape: %s, "
"memory_kind: %v)",
*devices_, shape_.DebugString(), shard_shape_.DebugString(),
memory_kind_);
"memory_kind: %v, is_fully_replicated: %s)",
*devices_, shape_.DebugString(), shard_shape_.DebugString(), memory_kind_,
is_fully_replicated_ ? "true" : "false");
}

absl::StatusOr<std::unique_ptr<ShardingParamSharding>>
Expand Down

0 comments on commit e141532

Please sign in to comment.