aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/math_grad.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-12-30 04:01:30 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-30 04:07:36 -0800
commit7455e254e901e33acc1367e3aa011b1548f0b145 (patch)
treec58a5aa1588186a44e03b242bf5a2d9d5aa62493 /tensorflow/python/ops/math_grad.py
parent00c45ea3355f6e630780d292e28daabeff08550a (diff)
Add missing gradients to tf.ceil and tf.round.
Change: 143244440
Diffstat (limited to 'tensorflow/python/ops/math_grad.py')
-rw-r--r--tensorflow/python/ops/math_grad.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tensorflow/python/ops/math_grad.py b/tensorflow/python/ops/math_grad.py
index 1bdbb2543f..833ba264e1 100644
--- a/tensorflow/python/ops/math_grad.py
+++ b/tensorflow/python/ops/math_grad.py
@@ -838,6 +838,16 @@ def _FloorGrad(_, unused_grad):
return [None]
+@ops.RegisterGradient("Ceil")
+def _CeilGrad(_, unused_grad):
+ return [None]
+
+
+@ops.RegisterGradient("Round")
+def _RoundGrad(_, unused_grad):
+ return [None]
+
+
@ops.RegisterGradient("Rint")
def _RintGrad(_, unused_grad):
# the gradient of Rint is zero