(self)
| 317 | |
| 318 | @test_util.run_in_graph_and_eager_modes |
| 319 | def testAcceptsTensor(self): |
| 320 | tensor = array_ops.ones([10, 10]) |
| 321 | result = math_ops.scalar_mul(3, tensor) |
| 322 | expected = array_ops.ones([10, 10]) * 3 |
| 323 | |
| 324 | with test_util.device(use_gpu=True): |
| 325 | self.assertAllEqual(self.evaluate(expected), self.evaluate(result)) |
| 326 | |
| 327 | @test_util.run_in_graph_and_eager_modes |
| 328 | def testAcceptsIndexedSlices(self): |
nothing calls this directly
no test coverage detected