aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/batching
diff options
context:
space:
mode:
authorGravatar Christopher Olston <olston@google.com>2017-04-27 13:50:31 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-27 15:08:06 -0700
commitb282159e438ca1cffb94a44fc21022ca8ffb49fa (patch)
tree8e4451e49171c9854c2f35a0ac7f6b468b524001 /tensorflow/contrib/batching
parent39f51e6366e6cae71a09efb8c8ced2ff2dad15b6 (diff)
Eliminate 'xrange' usage from batch_ops.py, for better python version compatibility.
Change: 154473140
Diffstat (limited to 'tensorflow/contrib/batching')
-rw-r--r--tensorflow/contrib/batching/python/ops/batch_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/batching/python/ops/batch_ops.py b/tensorflow/contrib/batching/python/ops/batch_ops.py
index e50c3fdff4..867ee6dfbc 100644
--- a/tensorflow/contrib/batching/python/ops/batch_ops.py
+++ b/tensorflow/contrib/batching/python/ops/batch_ops.py
@@ -36,7 +36,7 @@ _batch_ops = loader.load_op_library(
def _BatchGrad(op, *out_grads): # pylint: disable=invalid-name
"""Gradient for batch op."""
gradients = []
- for i in xrange(len(op.inputs)):
+ for i in range(len(op.inputs)):
gradients.append(
gen_batch_ops.unbatch(
out_grads[i],