MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / testOutputOnHostMemory

Method testOutputOnHostMemory

tensorflow/python/eager/ops_test.py:274–278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 4

gpuMethod · 0.45
constantMethod · 0.45
shapeMethod · 0.45
numpyMethod · 0.45

Tested by

no test coverage detected