Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/deepspeedai/DeepSpeed
/ device_count
Method
device_count
accelerator/hpu_accelerator.py:72–73 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
70
return
'hpu:{}'
.format(self.current_device())
71
72
def
device_count(self):
73
return
self.hpu.device_count()
74
75
def
synchronize(self, device_index=None):
76
return
self.hpu.synchronize()
Callers
15
create_deepspeed_args
Function · 0.45
_launch_procs
Method · 0.45
TestDistAllReduce
Class · 0.45
TestDistInferenceAllReduce
Class · 0.45
test_mpi_perf.py
File · 0.45
test_mpi_backend.py
File · 0.45
_get_local_all_to_all_group
Function · 0.45
_validate_folder_mapping
Function · 0.45
main
Function · 0.45
__init__
Method · 0.45
__avg_scatter_grads
Method · 0.45
create_mics_comm_groups
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected