Commit 38bbdb99 authored by Yong Tang's avatar Yong Tang Committed by gunan
Browse files

Add gradient tests for `tf.maximum` and `tf.minimum` (#14077)

* Add gradient tests for `tf.maximum`

Was looking into adding gradient tests for `tf.clip_by_value`
(https://github.com/tensorflow/tensorflow/pull/13998#discussion_r147542917

)
and then noticed that there is no gradient tests in `math_grad_test.py`
for `tf.maximum`. I think it makes sense to add a gradient test to cover
`tf.maximum`.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Also add a gradient test for `tf.minimum`

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent a8a00ec8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment