(self)
| 374 | |
| 375 | @test_util.run_deprecated_v1 |
| 376 | def testFloat(self): |
| 377 | np.random.seed(12345) |
| 378 | for num_inputs in range(1, 10): |
| 379 | x = [np.random.random((1, 2, 3, 4, 5)) - 0.5 for _ in range(num_inputs)] |
| 380 | tf_x = ops.convert_n_to_tensor(x) |
| 381 | with self.cached_session(use_gpu=True): |
| 382 | self.assertAllClose(sum(x), math_ops.add_n(tf_x).eval()) |
| 383 | self.assertAllClose(x[0] * num_inputs, |
| 384 | math_ops.add_n([tf_x[0]] * num_inputs).eval()) |
| 385 | |
| 386 | @test_util.run_deprecated_v1 |
| 387 | def testInt(self): |
nothing calls this directly
no test coverage detected