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

Method cpu

tensorflow/python/framework/ops.py:1052–1054  ·  view source on GitHub ↗

A copy of this Tensor with contents backed by host memory.

(self)

Source from the content-addressed store, hash-verified

1050
1051 @deprecation.deprecated(None, "Use tf.identity instead.")
1052 def cpu(self):
1053 """A copy of this Tensor with contents backed by host memory."""
1054 return self._copy(context.context(), "CPU:0")
1055
1056 @deprecation.deprecated(None, "Use tf.identity instead.")
1057 def gpu(self, gpu_index=0):

Callers 15

testGPUMethod · 0.80
_force_device_syncMethod · 0.80
force_gpu_syncFunction · 0.80
_benchmark_applyMethod · 0.80
_force_device_syncMethod · 0.80
_force_device_syncMethod · 0.80
_GatherV2GradFunction · 0.80
_constant_implFunction · 0.80
testTensorPlacementMethod · 0.80

Calls 2

_copyMethod · 0.95
contextMethod · 0.45

Tested by 15

testGPUMethod · 0.64
_force_device_syncMethod · 0.64
force_gpu_syncFunction · 0.64
_benchmark_applyMethod · 0.64
_force_device_syncMethod · 0.64
_force_device_syncMethod · 0.64
testTensorPlacementMethod · 0.64