Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ get_default_device
Function
get_default_device
imperative/python/src/common.cpp:65–67 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
63
}
64
65
std::string get_default_device() {
66
return default_device;
67
}
68
69
std::string device_type2str(CompNode::DeviceType type) {
70
using DT = CompNode::DeviceType;
Callers
4
init_graph_rt
Function · 0.70
as_comp_node
Function · 0.70
_get_device
Function · 0.70
device2obj
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected