[XLA] Remove redundant type info on constants in HLO graph dump.
Instead of printing constants as e.g. "f32[] 1 (f32[])", print them simply as "f32[] 1". PiperOrigin-RevId: 235632525
This commit is contained in:
parent
9c95751e87
commit
70650633f2
@ -829,8 +829,7 @@ string HloDotDumper::GetInstructionNodeInlinedOperands(
|
||||
// collected from profiling tools. Those constants may not have a valid
|
||||
// literal.
|
||||
if (elem_count.has_value() && *elem_count <= 8 && constant->HasLiteral()) {
|
||||
return StrFormat("%s (%s)", constant->literal().ToString(),
|
||||
ShapeUtil::HumanString(constant->shape()));
|
||||
return constant->literal().ToString();
|
||||
}
|
||||
|
||||
// Otherwise, print e.g. "%constant.42 (s32[100])".
|
||||
|
Loading…
Reference in New Issue
Block a user