MCPcopy 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
65std::string get_default_device() {
66 return default_device;
67}
68
69std::string device_type2str(CompNode::DeviceType type) {
70 using DT = CompNode::DeviceType;

Callers 4

init_graph_rtFunction · 0.70
as_comp_nodeFunction · 0.70
_get_deviceFunction · 0.70
device2objFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected