(self)
| 272 | |
| 273 | @test_util.run_gpu_only |
| 274 | def testOutputOnHostMemory(self): |
| 275 | # The Shape op kernel on GPU places the output in host memory. |
| 276 | value = constant_op.constant([1.]).gpu() |
| 277 | shape = array_ops.shape(value) |
| 278 | self.assertEqual([1], shape.numpy()) |
| 279 | |
| 280 | @test_util.run_gpu_only |
| 281 | def testSilentCopy(self): |