MCPcopy Create free account
hub / github.com/apache/singa / to_host

Method to_host

python/singa/tensor.py:321–325  ·  view source on GitHub ↗

Move the tensor data onto the default host CppCPU device.

(self)

Source from the content-addressed store, hash-verified

319 self.device = device
320
321 def to_host(self):
322 '''Move the tensor data onto the default host CppCPU device.
323 '''
324 self.data.ToHost()
325 self.device = get_default_device()
326
327 def l2(self):
328 '''

Callers 4

to_hostFunction · 0.45
assertTensorEqualFunction · 0.45
_run_testMethod · 0.45
_testMethod · 0.45

Calls 2

get_default_deviceFunction · 0.85
ToHostMethod · 0.80

Tested by 3

assertTensorEqualFunction · 0.36
_run_testMethod · 0.36
_testMethod · 0.36