MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_default_device

Function get_default_device

imperative/python/megengine/device.py:147–151  ·  view source on GitHub ↗

r"""Gets default computing node. It returns the value set by :func:`~.set_default_device`.

()

Source from the content-addressed store, hash-verified

145
146
147def get_default_device() -> str:
148 r"""Gets default computing node.
149 It returns the value set by :func:`~.set_default_device`.
150 """
151 return CompNode._get_default_device()
152
153
154def get_mem_status_bytes(device: Optional[str] = None):

Callers 15

workerFunction · 0.90
workerFunction · 0.90
get_mem_status_bytesFunction · 0.70
get_allocated_memoryFunction · 0.70
get_reserved_memoryFunction · 0.70
get_max_reserved_memoryFunction · 0.70
get_max_allocated_memoryFunction · 0.70
reset_max_memory_statsFunction · 0.70
_log_cn_mem_pool_detailsFunction · 0.70
__init__Method · 0.50
_dummy_inputFunction · 0.50

Calls

no outgoing calls

Tested by 2

workerFunction · 0.72
workerFunction · 0.72