Add additional test case
authorYong Tang <yong.tang.github@outlook.com>
Fri, 18 May 2018 17:58:57 +0000 (17:58 +0000)
committerYong Tang <yong.tang.github@outlook.com>
Fri, 18 May 2018 18:00:28 +0000 (18:00 +0000)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
tensorflow/python/kernel_tests/clip_ops_test.py

index 403836e..5b8b5d0 100644 (file)
@@ -421,8 +421,9 @@ class ClipTest(test.TestCase):
     # Test case for GitHub issue 19337
     z = array_ops.placeholder(dtype=dtypes.float32, shape=None)
     x = clip_ops.clip_by_value(z, z, 1)
+    y = clip_ops.clip_by_value(z, 1, z)
     with self.test_session(use_gpu=True) as sess:
-      sess.run(x, feed_dict={z: np.zeros((7, 0))})
+      sess.run([x, y], feed_dict={z: np.zeros((7, 0))})
 
 
 if __name__ == '__main__':