diff options
Diffstat (limited to 'tensorflow/contrib/layers/python/ops/loss_ops.py')
-rw-r--r-- | tensorflow/contrib/layers/python/ops/loss_ops.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/layers/python/ops/loss_ops.py b/tensorflow/contrib/layers/python/ops/loss_ops.py index 0c2b2a0df5..ae3d6203fe 100644 --- a/tensorflow/contrib/layers/python/ops/loss_ops.py +++ b/tensorflow/contrib/layers/python/ops/loss_ops.py @@ -79,7 +79,7 @@ def _reduce_batch(x, reduce_fn, name=None): elif ndims == 1: return x # Don't include a useless reduction. elif ndims: - reduction_indices = range(1, ndims) + reduction_indices = list(range(1, ndims)) shape = [x.get_shape().dims[0]] else: reduction_indices = math_ops.range(1, array_ops.size(array_ops.shape(x))) |