aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/math_grad.py
diff options
context:
space:
mode:
authorGravatar Andrew Selle <aselle@google.com>2016-12-07 10:26:42 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-07 10:42:28 -0800
commit878f5fcb8103cfc7e28bd86f7d0c722e053588d1 (patch)
treed8311d6739ee5fb77f6ac5ad7f195273df209b77 /tensorflow/python/ops/math_grad.py
parent8d191fd0c415428803de170df1581be5f3af01b7 (diff)
Remove remaining uses of tf.reverse() and remove tf.reverse()
from API. On a subsequent commit tf.reverse() will be reintroduced but taking a list of integer axes to reverse. Change: 141325033
Diffstat (limited to 'tensorflow/python/ops/math_grad.py')
-rw-r--r--tensorflow/python/ops/math_grad.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/ops/math_grad.py b/tensorflow/python/ops/math_grad.py
index 9ba05f0a24..e4d42a4311 100644
--- a/tensorflow/python/ops/math_grad.py
+++ b/tensorflow/python/ops/math_grad.py
@@ -921,7 +921,7 @@ def _CastGrad(op, grad):
def _FFTSizeForGrad(grad, rank):
return math_ops.reduce_prod(
array_ops.slice(
- array_ops.reverse(array_ops.shape(grad), (True,)), (0,), (rank,)))
+ array_ops.reverse_v2(array_ops.shape(grad), [0]), (0,), (rank,)))
@ops.RegisterGradient("FFT")