diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-12-14 20:19:59 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-14 20:23:22 -0800 |
commit | f806269602219d5095265d036f294cc9a6260971 (patch) | |
tree | de30ce90061cf2039efbf26ae0396eab4ad66577 /tensorflow/compiler/xla/service/hlo_computation.cc | |
parent | d57ab2c4a7cd13e47f942aaff495912fdc96f84a (diff) |
[XLA] Remove '%' when printing the hlo text in short parsable mode.
PiperOrigin-RevId: 179138523
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_computation.cc')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_computation.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_computation.cc b/tensorflow/compiler/xla/service/hlo_computation.cc index 4202c08336..a63affa06c 100644 --- a/tensorflow/compiler/xla/service/hlo_computation.cc +++ b/tensorflow/compiler/xla/service/hlo_computation.cc @@ -369,7 +369,10 @@ string HloComputation::ToString(const HloPrintOptions& options) const { for (int i = 0; i < options.indent_amount(); i++) { s << " "; } - s << "%" << name(); + if (options.print_percent()) { + s << "%"; + } + s << name(); if (options.print_program_shape()) { s << " " << ShapeUtil::HumanString(ComputeProgramShape()); } |