diff options
author | Christopher Olston <olston@google.com> | 2017-04-27 13:50:31 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-04-27 15:08:06 -0700 |
commit | b282159e438ca1cffb94a44fc21022ca8ffb49fa (patch) | |
tree | 8e4451e49171c9854c2f35a0ac7f6b468b524001 /tensorflow/contrib/batching | |
parent | 39f51e6366e6cae71a09efb8c8ced2ff2dad15b6 (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.py | 2 |
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], |