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

Function what_is_xpu

imperative/python/megengine/device.py:286–288  ·  view source on GitHub ↗

r"""Return the precise device type like ``cpu``, ``cuda`` and so on.

()

Source from the content-addressed store, hash-verified

284
285
286def what_is_xpu():
287 r"""Return the precise device type like ``cpu``, ``cuda`` and so on."""
288 return _what_is_xpu().name.lower()
289
290
291def coalesce_free_memory():

Callers 2

init_process_groupFunction · 0.85
_backendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected