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

Function get_default_device

python/singa/device.py:130–132  ·  view source on GitHub ↗

Get the default host device which is a CppCPU device

()

Source from the content-addressed store, hash-verified

128
129
130def get_default_device():
131 '''Get the default host device which is a CppCPU device'''
132 return default_device
133
134
135def enable_lazy_alloc(enable):

Callers 10

__init__Method · 0.85
to_hostMethod · 0.85
randomFunction · 0.85
zerosFunction · 0.85
onesFunction · 0.85
__init__Method · 0.85
to_hostMethod · 0.85
randomFunction · 0.85
zerosFunction · 0.85
onesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected