diff options
author | Justin Lebar <jlebar@google.com> | 2017-12-14 17:55:08 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-14 17:58:40 -0800 |
commit | b03f0e408710c5a92b87d748360b03c6cb60760d (patch) | |
tree | 531c0afd6f65b35a3cb6f5dbfb7d051887378da8 /tensorflow/compiler/xla/service/hlo_computation.h | |
parent | ca431de46797155f296639cd978f1d2c370c89d5 (diff) |
[XLA] Express the default options to ToString using an overload, rather than a default param.
No functional change.
The motivation for this is that GDB ignores default params, but resolves
overloads just fine.
PiperOrigin-RevId: 179125588
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_computation.h')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_computation.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_computation.h b/tensorflow/compiler/xla/service/hlo_computation.h index e87f240540..6436815f91 100644 --- a/tensorflow/compiler/xla/service/hlo_computation.h +++ b/tensorflow/compiler/xla/service/hlo_computation.h @@ -138,7 +138,11 @@ class HloComputation { void UniquifyName(NameUniquer* name_uniquer); // Return a string representation of the computation. - string ToString(const HloPrintOptions& options = HloPrintOptions()) const; + // + // (We express the default options using an overload rather than a default + // param because gdb ignores default params, but does resolve overloads.) + string ToString() const { return ToString(HloPrintOptions()); } + string ToString(const HloPrintOptions& options) const; // Returns a serialized representation of this computation. HloComputationProto ToProto() const; |