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

Method to_host

examples/model_selection/Trails/singa_pkg_code/tensor.py:292–296  ·  view source on GitHub ↗

Move the tensor data onto the default host CppCPU device.

(self)

Source from the content-addressed store, hash-verified

290 self.device = device
291
292 def to_host(self):
293 '''Move the tensor data onto the default host CppCPU device.
294 '''
295 self.data.ToHost()
296 self.device = get_default_device()
297
298 def l2(self):
299 '''

Callers 1

to_hostFunction · 0.45

Calls 2

get_default_deviceFunction · 0.85
ToHostMethod · 0.80

Tested by

no test coverage detected