MCPcopy
hub / github.com/hpcaitech/ColossalAI / is_available

Method is_available

colossalai/accelerator/cpu_accelerator.py:63–67  ·  view source on GitHub ↗

Check if the accelerator is available.

(self)

Source from the content-addressed store, hash-verified

61 raise RuntimeError("this method is not supported for cpu accelerator")
62
63 def is_available(self):
64 """
65 Check if the accelerator is available.
66 """
67 return True
68
69 def device_count(self):
70 """

Callers 15

_default_deviceFunction · 0.45
launchFunction · 0.45
__init__Method · 0.45
set_seedMethod · 0.45
moe_set_seedFunction · 0.45
from_pretrainedMethod · 0.45
initializeMethod · 0.45
log_cuda_infoFunction · 0.45
log_cuda_infoFunction · 0.45
print_details_infoFunction · 0.45
__init__Method · 0.45
setupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected