aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_computation.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-02-13 15:29:00 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-13 15:32:59 -0800
commit9a0403542b3c67119e7097a491a2c5e2602b14c3 (patch)
tree5d9dfbbed2c388d8a0ac8c22fa3d899958c5562e /tensorflow/compiler/xla/service/hlo_computation.cc
parentdcfa59b8c32e44bcd16fbd58ce91e7d3f332be36 (diff)
Wire in support for XLA kConditional instruction.
PiperOrigin-RevId: 185598764
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_computation.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_computation.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_computation.cc b/tensorflow/compiler/xla/service/hlo_computation.cc
index 5432419e4a..21e6b2ca73 100644
--- a/tensorflow/compiler/xla/service/hlo_computation.cc
+++ b/tensorflow/compiler/xla/service/hlo_computation.cc
@@ -509,13 +509,14 @@ StatusOr<HloInstruction*> HloComputation::DeepCopyInstruction(
"Can't deep copy instruction %s: instruction is not in computation %s",
instruction->name().c_str(), name().c_str());
}
-
if (indices_to_copy != nullptr &&
!ShapeUtil::Compatible(instruction->shape(), indices_to_copy->shape())) {
return FailedPrecondition(
"Can't deep copy instruction %s: given shape tree of indices to copy "
- "has incompatible shape",
- instruction->name().c_str());
+ "has incompatible shapes: %s vs. %s",
+ instruction->name().c_str(),
+ ShapeUtil::HumanString(instruction->shape()).c_str(),
+ ShapeUtil::HumanString(indices_to_copy->shape()).c_str());
}
ShapeIndex index;