Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ current_device
Method
current_device
accelerator/mlu_accelerator.py:47–48 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
45
torch.mlu.set_device(device_index)
46
47
def
current_device(self):
48
return
torch.mlu.current_device()
49
50
def
current_device_name(self):
51
return
'mlu:{}'
.format(torch.mlu.current_device())
Callers
1
current_device_name
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected