(self)
| 581 | |
| 582 | @test_util.run_gpu_only |
| 583 | def testNumpyForceCPU(self): |
| 584 | cpu = constant_op.constant([[1., 2.], [3., 4.]]) |
| 585 | c2g = cpu.gpu() |
| 586 | self.assertAllEqual(c2g, cpu.numpy()) |
| 587 | |
| 588 | def testCopyFromCPUToCPU(self): |
| 589 | ta = constant_op.constant([[1, 2], [3, 4]]) |
nothing calls this directly
no test coverage detected