Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
130
def
get_default_device():
131
''
'Get the default host device which is a CppCPU device'
''
132
return
default_device
133
134
135
def
enable_lazy_alloc(enable):
Callers
10
__init__
Method · 0.85
to_host
Method · 0.85
random
Function · 0.85
zeros
Function · 0.85
ones
Function · 0.85
__init__
Method · 0.85
to_host
Method · 0.85
random
Function · 0.85
zeros
Function · 0.85
ones
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected