aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_computation.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-06-11 14:10:47 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-06-11 14:15:48 -0700
commit21aa82e1a12eb53fe4c94006f957c1adab9aa662 (patch)
tree85688ae259c7df5d0e7546299041ec75e4895861 /tensorflow/compiler/xla/service/hlo_computation.cc
parent0d9b4f06b7242288a3aeb0d29fe10278522c7f45 (diff)
[XLA] Sanitize HloComputation and HloInstruction names.
PiperOrigin-RevId: 200110003
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_computation.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_computation.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_computation.cc b/tensorflow/compiler/xla/service/hlo_computation.cc
index ed0ea39ff5..763d9d2269 100644
--- a/tensorflow/compiler/xla/service/hlo_computation.cc
+++ b/tensorflow/compiler/xla/service/hlo_computation.cc
@@ -64,7 +64,7 @@ HloComputation::HloComputation(
const string& name, int parameter_count,
std::vector<std::unique_ptr<HloInstruction>>* instructions,
HloInstruction* root_instruction, HloInstruction* fusion_instruction)
- : name_(name),
+ : name_(NameUniquer::GetSanitizedName(name)),
unique_id_(-1),
root_instruction_(root_instruction),
fusion_instruction_(fusion_instruction) {