From 70650633f270cf940b74843e490d5aea89293506 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Mon, 25 Feb 2019 17:26:05 -0800 Subject: [PATCH] [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 --- tensorflow/compiler/xla/service/hlo_graph_dumper.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tensorflow/compiler/xla/service/hlo_graph_dumper.cc b/tensorflow/compiler/xla/service/hlo_graph_dumper.cc index 254f66021d7..1bb4195b7e6 100644 --- a/tensorflow/compiler/xla/service/hlo_graph_dumper.cc +++ b/tensorflow/compiler/xla/service/hlo_graph_dumper.cc @@ -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])".