aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2017-07-11 07:46:56 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-07-11 07:50:42 -0700
commitba45775be000f0923ae620fff6760f15ca56dc53 (patch)
treead97c1f1d6eaa5db3f3c155d1b8332117f7fcc9b
parent9e89636e6aa2be508fad22089c61659ce87f6e67 (diff)
[TF:XLA] Fix copy-and-paste bug in CHECK statement.
PiperOrigin-RevId: 161527685
-rw-r--r--tensorflow/compiler/tf2xla/kernels/while_op.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/tf2xla/kernels/while_op.cc b/tensorflow/compiler/tf2xla/kernels/while_op.cc
index ae018515ad..6d1af50053 100644
--- a/tensorflow/compiler/tf2xla/kernels/while_op.cc
+++ b/tensorflow/compiler/tf2xla/kernels/while_op.cc
@@ -180,7 +180,7 @@ void XlaWhileOp::Compile(XlaOpKernelContext* ctx) {
} else {
CHECK(!body.xla_input_shapes.empty());
body_input_shape = body.xla_input_shapes[0];
- CHECK(!body.xla_input_shapes.empty());
+ CHECK(!cond.xla_input_shapes.empty());
cond_input_shape = cond.xla_input_shapes[0];
}