Skip to content

Commit 2b1533e

Browse files
[ #HLODiff ]Fix a bug in hlo_diff_summary.cc
The line to log the right computations was incorrectly placing them at the same index as the left computations, which caused the string to overwrite itself, leaving only one of the computations to be printed. PiperOrigin-RevId: 785915761
1 parent 768b624 commit 2b1533e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

third_party/xla/xla/hlo/tools/hlo_diff/hlo_diff_summary.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,9 @@ void LogComputationGroup(const ComputationGroup& computation_group) {
311311
"L: %s", computation_group.left_computations[i]->name());
312312
}
313313
for (int i = 0; i < computation_group.right_computations.size(); ++i) {
314-
computations_str[i] = absl::StrFormat(
315-
"R: %s", computation_group.right_computations[i]->name());
314+
computations_str[computation_group.left_computations.size() + i] =
315+
absl::StrFormat("R: %s",
316+
computation_group.right_computations[i]->name());
316317
}
317318
LOG(INFO) << absl::StrJoin(computations_str, ", ");
318319
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy