(self, x, y, use_gpu)
| 725 | class MinMaxOpTest(test.TestCase): |
| 726 | |
| 727 | def _compare(self, x, y, use_gpu): |
| 728 | np_min, np_max = np.minimum(x, y), np.maximum(x, y) |
| 729 | with test_util.device(use_gpu=use_gpu): |
| 730 | inx = ops.convert_to_tensor(x) |
| 731 | iny = ops.convert_to_tensor(y) |
| 732 | omin, omax = math_ops.minimum(inx, iny), math_ops.maximum(inx, iny) |
| 733 | tf_min, tf_max = self.evaluate([omin, omax]) |
| 734 | self.assertAllEqual(np_min, tf_min) |
| 735 | self.assertAllEqual(np_max, tf_max) |
| 736 | |
| 737 | def testBasic(self): |
| 738 | x = np.random.rand(1, 3, 2) * 100. |
no test coverage detected