aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_instruction.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-10-02 15:08:52 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-02 15:20:19 -0700
commitbb84d5d5e309204110315f7d0ff8ca0dbb022dd2 (patch)
tree351ff0255434d39238315db811581cde201380c2 /tensorflow/compiler/xla/service/hlo_instruction.cc
parentcfec3aa38db1d2b70045e7b89d82fae87c3fec02 (diff)
[XLA] Support parsing the canonical format of HLO text.
Also stop truncating operands in the canonical format. PiperOrigin-RevId: 215466465
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_instruction.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_instruction.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_instruction.cc b/tensorflow/compiler/xla/service/hlo_instruction.cc
index 5c16d6bb5e..8bddaa8c96 100644
--- a/tensorflow/compiler/xla/service/hlo_instruction.cc
+++ b/tensorflow/compiler/xla/service/hlo_instruction.cc
@@ -2034,7 +2034,7 @@ string HloInstruction::OperandsToStringWithCanonicalNameMap(
options.is_in_nested_computation()) {
str.push_back(PrintName(
canonical_name_map->LookupOrInsert(operand->name()), options));
- } else if (!options.compact_operands()) {
+ } else if (options.print_operand_names()) {
str.push_back(PrintName(operand->name(), options));
}
StrAppend(out, StrJoin(str, " "));