aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_instructions.cc
diff options
context:
space:
mode:
authorGravatar Mark Heffernan <meheff@google.com>2018-10-01 10:35:02 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-01 10:40:09 -0700
commita5fc8b064884b926ade9f7973dc096c0677a14e0 (patch)
treedab266bce005373b0b5f62931a88432031dd2206 /tensorflow/compiler/xla/service/hlo_instructions.cc
parent03a18ca576410d49e8f0692464e35e900a54f59f (diff)
Name fusion parameters simply "param_X".
Where "X" is the parameter number. Previously, fusion parameter names including the name of the original instruction which produced the value which was confusing. PiperOrigin-RevId: 215238171
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_instructions.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_instructions.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_instructions.cc b/tensorflow/compiler/xla/service/hlo_instructions.cc
index cd71bc3323..ad45a82941 100644
--- a/tensorflow/compiler/xla/service/hlo_instructions.cc
+++ b/tensorflow/compiler/xla/service/hlo_instructions.cc
@@ -1042,7 +1042,8 @@ HloInstruction* HloFusionInstruction::AddFusionOperand(
const int64 param_no = operand_count();
// Name the parameter after the instruction it represents in the outer
// (non-fusion) computation.
- string param_name = StrCat(new_operand->name(), ".param_", param_no);
+ // string param_name = StrCat(new_operand->name(), ".param_", param_no);
+ string param_name = StrCat("param_", param_no);
HloInstruction* fused_parameter =
fused_instructions_computation()->AddParameter(
HloInstruction::CreateParameter(param_no, new_operand->shape(),